… | |
… | |
338 | |
338 | |
339 | MTH int slottype () const; |
339 | MTH int slottype () const; |
340 | MTH static object *create (); |
340 | MTH static object *create (); |
341 | const mapxy &operator =(const mapxy &pos); |
341 | const mapxy &operator =(const mapxy &pos); |
342 | MTH void copy_to (object *dst); |
342 | MTH void copy_to (object *dst); |
343 | MTH object *clone (); // create + copy_to |
343 | MTH object *clone (); // create + copy_to a single object |
|
|
344 | MTH object *deep_clone (); // copy whole more chain and inventory |
344 | void do_destroy (); |
345 | void do_destroy (); |
345 | void gather_callbacks (AV *&callbacks, event_type event) const; |
346 | void gather_callbacks (AV *&callbacks, event_type event) const; |
346 | MTH void destroy (bool destroy_inventory = false); |
347 | MTH void destroy (bool destroy_inventory = false); |
347 | |
348 | |
348 | // recursively destroy all objects in inventory, optionally dropping them to the ground instead |
349 | // recursively destroy all objects in inventory, optionally dropping them to the ground instead |