… | |
… | |
177 | |
177 | |
178 | float ACC (RW, speed); /* The overall speed of this object */ |
178 | float ACC (RW, speed); /* The overall speed of this object */ |
179 | float ACC (RW, speed_left); /* How much speed is left to spend this round */ |
179 | float ACC (RW, speed_left); /* How much speed is left to spend this round */ |
180 | uint32 ACC (RW, nrof); /* How many of the objects */ |
180 | uint32 ACC (RW, nrof); /* How many of the objects */ |
181 | |
181 | |
182 | /* This next big block are basically used for monsters and equipment */ |
182 | /* This next big block is basically used for monsters and equipment */ |
183 | uint16 ACC (RW, client_type); /* Public type information. see doc/Developers/objects */ |
183 | uint16 ACC (RW, client_type); /* Public type information. see doc/Developers/objects */ |
184 | |
184 | |
185 | sint16 ACC (RW, resist[NROFATTACKS]); /* Resistance adjustments for attacks */ |
185 | sint16 ACC (RW, resist[NROFATTACKS]); /* Resistance adjustments for attacks */ |
186 | uint32 ACC (RW, attacktype); /* Bitmask of attacks this object does */ |
186 | uint32 ACC (RW, attacktype); /* Bitmask of attacks this object does */ |
187 | uint32 ACC (RW, path_attuned);/* Paths the object is attuned to */ |
187 | uint32 ACC (RW, path_attuned);/* Paths the object is attuned to */ |
… | |
… | |
302 | bool write (object_freezer &f); |
302 | bool write (object_freezer &f); |
303 | |
303 | |
304 | MTH int slottype () const; |
304 | MTH int slottype () const; |
305 | MTH static object *create (); |
305 | MTH static object *create (); |
306 | const mapxy &operator =(const mapxy &pos); |
306 | const mapxy &operator =(const mapxy &pos); |
307 | object &operator =(const object &src); |
|
|
308 | MTH void copy_to (object *dst); |
307 | MTH void copy_to (object *dst); |
309 | MTH object *clone (); // create + copy_to |
308 | MTH object *clone (); // create + copy_to |
310 | void do_destroy (); |
309 | void do_destroy (); |
311 | void gather_callbacks (AV *&callbacks, event_type event) const; |
310 | void gather_callbacks (AV *&callbacks, event_type event) const; |
312 | MTH void destroy (bool destroy_inventory = false); |
311 | MTH void destroy (bool destroy_inventory = false); |
… | |
… | |
576 | void link (); |
575 | void link (); |
577 | void unlink (); |
576 | void unlink (); |
578 | |
577 | |
579 | object (); |
578 | object (); |
580 | ~object (); |
579 | ~object (); |
|
|
580 | |
|
|
581 | private: |
|
|
582 | object &operator =(const object &); |
|
|
583 | object (const object &); |
581 | }; |
584 | }; |
582 | |
585 | |
583 | // move this object to the top of its env's inventory to speed up |
586 | // move this object to the top of its env's inventory to speed up |
584 | // searches for it. |
587 | // searches for it. |
585 | static object * |
588 | static object * |