blob: 9555610d3eb1ed2cac98e53047b22972c0ae23f5 [file] [log] [blame]
MG Mud User88f12472016-06-24 23:31:02 +02001// MorgenGrauen MUDlib
2//
3// container.h -- Properties und Definitionen fuer Behaelter
4//
5// $Id: container.h 9020 2015-01-10 21:49:41Z Zesstra $
6
7#ifndef __CONTAINER_H__
8#define __CONTAINER_H__
9
10#include <thing/restrictions.h>
11
12// properties
13#define P_CONTENTS "contents" // Obsolet!!!
14
15#define P_CONTAINER "container" // Objekt ist ein Container
16#define P_CNT_STATUS "cnt_status" // Status des Containers
17#define P_TRANSPARENT "transparent" // kann man hineinschaun?
18#define P_LIGHT_TRANSPARENCY "light_transparency" // Lichtdurchlaessigkeit
19
20#define P_PREPOSITION "preposition" // Sachen IN dem Container
21#define P_SOURCE_PREPOSITION "source_preposition" // kann man AUS ihm nehmen
22#define P_DEST_PREPOSITION "dest_preposition" // ...wieder IN ihn stecken
23
24#define P_MAX_WEIGHT "max_weight" // max. Gewicht
25#define P_WEIGHT_PERCENT "weight_percent" // Gewichtsreduktion in %
26
27#define P_TOTAL_OBJECTS "total_objects" // # der non-invis Objekte
28#define P_MAX_OBJECTS "max_objects" // max. Objektanzahl
29
30#define P_INT_LIGHT "int_light"
31
32#define P_ITEMS "items" // siehe AddItem()
33
34#define P_PREVENT_PILE "prevent_pile" // siehe /std/corpse
35#define P_PILE_NAME "pile_name" // Name des Spielers im Dativ
36
37// special defines
38#define CNT_STATUS_OPEN 0
39#define CNT_STATUS_CLOSED 1
40#define CNT_STATUS_LOCKED 2
41
42#define R_INSERT "insert"
43
44#define CNT_ARRAY 1
45#define CNT_COLLECT 2
46
47#endif // __CONTAINER_H__
48
49#ifdef NEED_PROTOTYPES
50
51#ifndef __CONTAINER_H_PROTO__
52#define __CONTAINER_H_PROTO__
53
54// prototypes
55// from: container/description.c
56varargs mixed make_invlist(object viewer, mixed inv, int array);
57
58// from: container/restrictions.c
59int query_weight_contents();
60static int _query_last_content_change();
61
62int MayAddWeight(int w);
63int MayAddObject(object ob);
64public int PreventInsert(object ob);
65public int PreventLeave(object ob, mixed dest);
66object *present_objects(string complex_desc);
67object *locate_objects(string complex_desc,int info);
68
69// container/items.c
70public varargs object AddItem( mixed filename, int refresh, mixed props);
71#endif // __CONTAINER_H_PROTO__
72
73#endif // NEED_PROTOTYPES