… | |
… | |
139 | #define WILL_APPLY_DOOR 0x08 |
139 | #define WILL_APPLY_DOOR 0x08 |
140 | #define WILL_APPLY_FOOD 0x10 |
140 | #define WILL_APPLY_FOOD 0x10 |
141 | |
141 | |
142 | struct body_slot |
142 | struct body_slot |
143 | { |
143 | { |
|
|
144 | signed char used:4; /* Calculated value based on items equipped */ |
144 | signed char info:4; /* body info as loaded from the file */ |
145 | signed char info:4; /* body info as loaded from the file */ |
145 | signed char used:4; /* Calculated value based on items equipped */ |
|
|
146 | }; |
146 | }; |
147 | |
147 | |
148 | typedef struct oblnk |
148 | typedef struct oblnk |
149 | { /* Used to link together several objects */ |
149 | { /* Used to link together several objects */ |
150 | object_ptr ob; |
150 | object_ptr ob; |
… | |
… | |
227 | uint8 ACC (RW, pick_up); /* See crossfire.doc */ |
227 | uint8 ACC (RW, pick_up); /* See crossfire.doc */ |
228 | sint8 ACC (RW, gen_sp_armour);/* sp regen penalty this object has (was last_heal) */ |
228 | sint8 ACC (RW, gen_sp_armour);/* sp regen penalty this object has (was last_heal) */ |
229 | sint8 ACC (RW, glow_radius); /* indicates the glow radius of the object */ |
229 | sint8 ACC (RW, glow_radius); /* indicates the glow radius of the object */ |
230 | uint8 ACC (RW, weapontype); /* type of weapon */ |
230 | uint8 ACC (RW, weapontype); /* type of weapon */ |
231 | |
231 | |
|
|
232 | body_slot slot [NUM_BODY_LOCATIONS]; |
|
|
233 | |
232 | faceidx ACC (RW, face); /* the graphical face */ |
234 | faceidx ACC (RW, face); /* the graphical face */ |
233 | |
235 | |
234 | faceidx ACC (RW, sound); /* the sound face */ |
236 | faceidx ACC (RW, sound); /* the sound face */ |
235 | faceidx ACC (RW, sound_destroy); /* played on destroy */ |
237 | faceidx ACC (RW, sound_destroy); /* played on destroy */ |
236 | |
|
|
237 | body_slot slot [NUM_BODY_LOCATIONS]; |
|
|
238 | |
238 | |
239 | sint32 ACC (RW, weight); /* Attributes of the object */ |
239 | sint32 ACC (RW, weight); /* Attributes of the object */ |
240 | sint32 ACC (RW, weight_limit);/* Weight-limit of object */ |
240 | sint32 ACC (RW, weight_limit);/* Weight-limit of object */ |
241 | |
241 | |
242 | sint32 ACC (RW, carrying); /* How much weight this object contains, must be 0 if nrof == 0 */ |
242 | sint32 ACC (RW, carrying); /* How much weight this object contains, must be 0 if nrof == 0 */ |
… | |
… | |
645 | MTH void create_treasure (treasurelist *tl, int flags = 0); |
645 | MTH void create_treasure (treasurelist *tl, int flags = 0); |
646 | |
646 | |
647 | // insert object at same map position as 'where' |
647 | // insert object at same map position as 'where' |
648 | // handles both inventory and map "positions" |
648 | // handles both inventory and map "positions" |
649 | MTH object *insert_at (object *where, object *originator = 0, int flags = 0); |
649 | MTH object *insert_at (object *where, object *originator = 0, int flags = 0); |
|
|
650 | // check whether we can put this into the map, respect max_nrof, max_volume, max_items |
|
|
651 | MTH bool can_drop_at (maptile *m, int x, int y, object *originator = 0); |
650 | MTH void drop_unpaid_items (); |
652 | MTH void drop_unpaid_items (); |
651 | |
653 | |
652 | MTH void activate (); |
654 | MTH void activate (); |
653 | MTH void deactivate (); |
655 | MTH void deactivate (); |
654 | MTH void activate_recursive (); |
656 | MTH void activate_recursive (); |
… | |
… | |
811 | MTH void link (); |
813 | MTH void link (); |
812 | MTH void unlink (); |
814 | MTH void unlink (); |
813 | |
815 | |
814 | MTH static object *get (const char *name); // (find() || singularity)->instance() |
816 | MTH static object *get (const char *name); // (find() || singularity)->instance() |
815 | MTH object *instance (); |
817 | MTH object *instance (); |
|
|
818 | |
|
|
819 | MTH void post_load_check (); // do some adjustments after parsing |
816 | |
820 | |
817 | object_vector_index ACC (RW, archid); // index in archvector |
821 | object_vector_index ACC (RW, archid); // index in archvector |
818 | shstr ACC (RW, archname); /* More definite name, like "generate_kobold" */ |
822 | shstr ACC (RW, archname); /* More definite name, like "generate_kobold" */ |
819 | |
823 | |
820 | sint8 ACC (RW, min_x), ACC (RW, min_y); /* extents, compared to the head (min_x, min_y should be zero, but aren't...) */ |
824 | sint8 ACC (RW, min_x), ACC (RW, min_y); /* extents, compared to the head (min_x, min_y should be zero, but aren't...) */ |