|
Atrinik Server 2.5
|
Go to the source code of this file.
Data Structures | |
| struct | key_value_struct |
| struct | obj |
| struct | oblnk |
| struct | magic_mirror_struct |
Defines | |
| #define | WEIGHT(op) (!op->nrof || op->type == CONTAINER ? op->weight + op->carrying : op->weight) |
| #define | WEIGHT_NROF(op, nrof) ((nrof ? op->weight * (sint32) nrof : op->weight) + op->carrying) |
| #define | MOVE_APPLY_DEFAULT 0 |
| #define | MOVE_APPLY_WALK_ON 1 |
| #define | MOVE_APPLY_FLY_ON 2 |
| #define | MOVE_APPLY_WALK_OFF 4 |
| #define | MOVE_APPLY_FLY_OFF 8 |
| #define | MOVE_APPLY_MOVE 16 |
| #define | MOVE_APPLY_VANISHED 32 |
| #define | MOVE_APPLY_SAVING 64 |
| #define | CHECK_WALK_OK 0 |
| #define | CHECK_WALK_DESTROYED 1 |
| #define | CHECK_WALK_MOVED 2 |
| #define | free_objectlink_simple(_chunk_) return_poolchunk((_chunk_), pool_objectlink); |
| #define | CONTR(ob) ((player *) ((ob)->custom_attrset)) |
| #define | LOOK_OBJ(_ob) (!IS_SYS_INVISIBLE(_ob) && _ob->type != PLAYER) |
| #define | UP_OBJ_INSERT 1 |
| #define | UP_OBJ_REMOVE 2 |
| #define | UP_OBJ_FLAGS 3 |
| #define | UP_OBJ_FACE 4 |
| #define | UP_OBJ_FLAGFACE 5 |
| #define | UP_OBJ_ALL 6 |
| #define | UP_OBJ_LAYER 7 |
| #define | OBJECT_VALID(_ob_, _count_) ((_ob_) && (_ob_)->count == ((tag_t) _count_) && !QUERY_FLAG((_ob_), FLAG_REMOVED) && !OBJECT_FREE(_ob_)) |
| #define | OBJECT_ACTIVE(_ob_) (!QUERY_FLAG((_ob_), FLAG_REMOVED) && !OBJECT_FREE(_ob_)) |
| #define | OBJECT_FREE(_ob_) ((_ob_)->count == 0 && CHUNK_FREE(_ob_)) |
| #define | INS_NO_MERGE 0x0001 |
| #define | INS_NO_WALK_ON 0x0002 |
| #define | INS_TAIL_MARKER 0x0004 |
| #define | BEHAVIOR_SPELL_FRIENDLY 1 |
| #define | BEHAVIOR_OPEN_DOORS 2 |
| #define | decrease_ob(xyz) decrease_ob_nr(xyz, 1) |
| #define | GENDER_NEUTER 0 |
| #define | GENDER_MALE 1 |
| #define | GENDER_FEMALE 2 |
| #define | GENDER_HERMAPHRODITE 3 |
| #define | GENDER_MAX 4 |
| #define | CORPSE_INFRAVISION_PERCENT 75 |
| #define | HEAD(op) ((op)->head ? (op)->head : (op)) |
| #define | MMIRROR(ob) ((magic_mirror_struct *) ((ob)->custom_attrset)) |
Typedefs | |
| typedef struct key_value_struct | key_value |
| typedef struct obj | object |
| typedef struct oblnk | objectlink |
| typedef struct magic_mirror_struct | magic_mirror_struct |
Variables | |
| object * | active_objects |
| struct mempool_chunk * | removed_objects |
| const char * | gender_noun [] |
| const char * | gender_subjective [] |
| const char * | gender_subjective_upper [] |
| const char * | gender_objective [] |
| const char * | gender_possessive [] |
| const char * | gender_reflexive [] |
Object related structures, core of Atrinik
Definition in file object.h.
| #define CORPSE_INFRAVISION_PERCENT 75 |
| #define decrease_ob | ( | xyz | ) | decrease_ob_nr(xyz, 1) |
| #define HEAD | ( | op | ) | ((op)->head ? (op)->head : (op)) |
| #define MMIRROR | ( | ob | ) | ((magic_mirror_struct *) ((ob)->custom_attrset)) |
Returns the magic_mirror_struct that holds the magic mirror's map, x and y. Can be NULL in case of a magic mirror that is only used for zooming or similar effect, and not mirroring.
| #define OBJECT_ACTIVE | ( | _ob_ | ) | (!QUERY_FLAG((_ob_), FLAG_REMOVED) && !OBJECT_FREE(_ob_)) |
| #define OBJECT_FREE | ( | _ob_ | ) | ((_ob_)->count == 0 && CHUNK_FREE(_ob_)) |
| #define OBJECT_VALID | ( | _ob_, | |
| _count_ | |||
| ) | ((_ob_) && (_ob_)->count == ((tag_t) _count_) && !QUERY_FLAG((_ob_), FLAG_REMOVED) && !OBJECT_FREE(_ob_)) |
| #define WEIGHT | ( | op | ) | (!op->nrof || op->type == CONTAINER ? op->weight + op->carrying : op->weight) |
| typedef struct key_value_struct key_value |
This structure allows any object to have extra fields the Flex loader does not know about.
| typedef struct magic_mirror_struct magic_mirror_struct |
Structure used for object::custom_attrset of magic mirrors.
| typedef struct oblnk objectlink |
Used to link together several objects.
| const char* gender_noun[] |
| const char* gender_objective[] |
| const char* gender_possessive[] |
| const char* gender_reflexive[] |
| const char* gender_subjective[] |
| const char* gender_subjective_upper[] |
| struct mempool_chunk* removed_objects |
1.7.4