… | |
… | |
276 | static object *read (object_thawer &f, maptile *map = 0); // map argument due to toal design bogosity, must go. |
276 | static object *read (object_thawer &f, maptile *map = 0); // map argument due to toal design bogosity, must go. |
277 | bool write (object_freezer &f); |
277 | bool write (object_freezer &f); |
278 | |
278 | |
279 | MTH int slottype () const; |
279 | MTH int slottype () const; |
280 | MTH static object *create (); |
280 | MTH static object *create (); |
|
|
281 | const mapxy &operator =(const mapxy &pos); |
281 | object &operator =(const object &src); |
282 | object &operator =(const object &src); |
282 | MTH void copy_to (object *dst); |
283 | MTH void copy_to (object *dst); |
283 | MTH object *clone (); // create + copy_to |
284 | MTH object *clone (); // create + copy_to |
284 | void do_destroy (); |
285 | void do_destroy (); |
285 | void gather_callbacks (AV *&callbacks, event_type event) const; |
286 | void gather_callbacks (AV *&callbacks, event_type event) const; |
… | |
… | |
293 | void do_remove (); |
294 | void do_remove (); |
294 | MTH void remove () |
295 | MTH void remove () |
295 | { |
296 | { |
296 | if (!flag [FLAG_REMOVED]) |
297 | if (!flag [FLAG_REMOVED]) |
297 | do_remove (); |
298 | do_remove (); |
|
|
299 | } |
|
|
300 | |
|
|
301 | void move_to (const mapxy &pos) |
|
|
302 | { |
|
|
303 | remove (); |
|
|
304 | *this = pos; |
|
|
305 | insert_at (this, this); |
298 | } |
306 | } |
299 | |
307 | |
300 | static bool can_merge_slow (object *op1, object *op2); |
308 | static bool can_merge_slow (object *op1, object *op2); |
301 | |
309 | |
302 | // this is often used in time-critical code, so optimise |
310 | // this is often used in time-critical code, so optimise |