… | |
… | |
186 | uint32 ACC (RW, weapontype); /* type of weapon */ |
186 | uint32 ACC (RW, weapontype); /* type of weapon */ |
187 | uint32 ACC (RW, tooltype); /* type of tool or build facility */ |
187 | uint32 ACC (RW, tooltype); /* type of tool or build facility */ |
188 | body_slot slot [NUM_BODY_LOCATIONS]; |
188 | body_slot slot [NUM_BODY_LOCATIONS]; |
189 | faceidx ACC (RW, face); /* the graphical face */ |
189 | faceidx ACC (RW, face); /* the graphical face */ |
190 | faceidx ACC (RW, sound); /* the sound face */ |
190 | faceidx ACC (RW, sound); /* the sound face */ |
191 | faceidx ACC (RW, sound_die); /* played on destroy */ |
191 | faceidx ACC (RW, sound_destroy); /* played on destroy */ |
192 | living ACC (RO, stats); /* Str, Con, Dex, etc */ |
192 | living ACC (RO, stats); /* Str, Con, Dex, etc */ |
193 | /* See the pod/objects.pod for more info about body locations */ |
193 | /* See the pod/objects.pod for more info about body locations */ |
194 | |
194 | |
195 | /* Following mostly refers to fields only used for monsters */ |
195 | /* Following mostly refers to fields only used for monsters */ |
196 | uint32 ACC (RW, hide); /* The object is hidden, not invisible */ |
196 | uint32 ACC (RW, hide); /* The object is hidden, not invisible */ |
… | |
… | |
250 | UUID ACC (RW, uuid); // Unique Identifier, survives saves etc. |
250 | UUID ACC (RW, uuid); // Unique Identifier, survives saves etc. |
251 | int ACC (RO, count); |
251 | int ACC (RO, count); |
252 | object_vector_index ACC (RO, index); // index into objects |
252 | object_vector_index ACC (RO, index); // index into objects |
253 | object_vector_index ACC (RO, active); // index into actives |
253 | object_vector_index ACC (RO, active); // index into actives |
254 | |
254 | |
255 | player_ptr ACC (RW, contr); /* Pointer to the player which control this object */ |
255 | player_ptr ACC (RW, contr); /* Pointer to the player which control this object, ALWAYS set *iff* type == PLAYER */ |
256 | |
256 | |
257 | object *ACC (RW, below); /* Pointer to the object stacked below this one */ |
257 | object *ACC (RW, below); /* Pointer to the object stacked below this one */ |
258 | object *ACC (RW, above); /* Pointer to the object stacked above this one */ |
258 | object *ACC (RW, above); /* Pointer to the object stacked above this one */ |
259 | /* Note: stacked in the *same* environment */ |
259 | /* Note: stacked in the *same* environment */ |
260 | object *inv; /* Pointer to the first object in the inventory */ |
260 | object *inv; /* Pointer to the first object in the inventory */ |
… | |
… | |
492 | { |
492 | { |
493 | return !invisible && type != PLAYER; |
493 | return !invisible && type != PLAYER; |
494 | } |
494 | } |
495 | |
495 | |
496 | MTH struct region *region () const; |
496 | MTH struct region *region () const; |
|
|
497 | |
|
|
498 | void statusmsg (const char *msg, int color = NDI_BLACK); |
|
|
499 | void errormsg (const char *msg, int color = NDI_RED); |
497 | |
500 | |
498 | protected: |
501 | protected: |
499 | void link (); |
502 | void link (); |
500 | void unlink (); |
503 | void unlink (); |
501 | |
504 | |