… | |
… | |
345 | MTH object *clone (); // create + copy_to a single object |
345 | MTH object *clone (); // create + copy_to a single object |
346 | MTH object *deep_clone (); // copy whole more chain and inventory |
346 | MTH object *deep_clone (); // copy whole more chain and inventory |
347 | void do_destroy (); |
347 | void do_destroy (); |
348 | void gather_callbacks (AV *&callbacks, event_type event) const; |
348 | void gather_callbacks (AV *&callbacks, event_type event) const; |
349 | MTH void destroy (bool destroy_inventory = false); |
349 | MTH void destroy (bool destroy_inventory = false); |
|
|
350 | MTH void drop_and_destroy () |
|
|
351 | { |
|
|
352 | destroy_inv (true); |
|
|
353 | destroy (); |
|
|
354 | } |
350 | |
355 | |
351 | // recursively destroy all objects in inventory, optionally dropping them to the ground instead |
356 | // recursively destroy all objects in inventory, optionally dropping them to the ground instead |
352 | MTH void destroy_inv (bool drop_to_ground = false); |
357 | MTH void destroy_inv (bool drop_to_ground = false); |
353 | MTH object *insert (object *item); // insert into inventory |
358 | MTH object *insert (object *item); // insert into inventory |
354 | MTH void play_sound (faceidx sound); |
359 | MTH void play_sound (faceidx sound); |