für Container - /sys/container.h

Stand vom 01.05.2003

----------

#ifndef __CONTAINER_H__
#define __CONTAINER_H__

#include <thing/restrictions.h>

// properties

#define P_MAX_WEIGHT 		"max_weight"
#define P_CONTENTS   		"contents"
#define P_CNT_STATUS 		"cnt_status"
#define P_TRANSPARENT		"transparent"
#define P_TRANSLUCENT           "translucent"
#define P_CNT_KEY               "cnt_key"
#define P_CNT_KEY_CLOSE         "cnt_key_close"
#define P_CNT_FLAGS             "cnt_flags"
#ifndef P_BULKINESS
#define P_BULKINESS             "bulkiness"
#endif
#define P_MAX_BULKINESS         "max_bulkiness"
#define P_BULKINESS_CONTENTS    "bulkiness_contents"

// special defines
#define CNT_STATUS_OPEN   0
#define CNT_STATUS_CLOSED 1
#define CNT_STATUS_LOCKED 2

#define CNT_RESET_OPEN    1     // wird bei reset geoeffnet
#define CNT_RESET_CLOSED  2     // wird bei reset geschlossen
#define CNT_RESET_LOCKED  4     // wird bei reset abgeschlossen
#define CNT_ONLY_LOCK     8     // kann vom offenen Zustand nur abgeschlossen
                                // werden
#define CNT_RESET_SILENT 16     // Reset erfolgt lautlos, ohne Meldung ueber
                                // Oeffnen und Schliessen
#define CNT_NOT_CLOSEABLE 32    // Nicht schliessbar

#define R_INSERT "insert"

#endif // __CONTAINER_H__

#ifdef NEED_PROTOTYPES

#ifndef __CONTAINER_H_PROTO__
#define __CONTAINER_H_PROTO__

// prototypes
// from: container/description.c
varargs string make_invlist(object viewer, mixed inv, mixed extra);

// from: container/restrictions.c
int query_weight_contents();

varargs int MayAddWeight(int w, object obj_to_move);
int MayAddBulkiness(int w);
varargs int PreventInsert(object ob);
// private object *present_objects(string complex_desc, object *exclude);
public object *locate_objects(string complex_desc, int info, object *exclude);

#endif // __CONTAINER_H_PROTO__

#endif // NEED_PROTOTYPES


Start » Magierhandbuch » Docu » System Makros » Container
Valid HTML 4.01!