… | |
… | |
32 | |
32 | |
33 | //+GPL |
33 | //+GPL |
34 | |
34 | |
35 | typedef int tag_t; |
35 | typedef int tag_t; |
36 | |
36 | |
|
|
37 | // also see common/item.C |
37 | enum { |
38 | enum { |
38 | body_skill, |
39 | body_skill, |
39 | body_combat, |
40 | body_combat, |
40 | body_range, |
41 | body_range, |
41 | body_shield, |
42 | body_shield, |
… | |
… | |
429 | } |
430 | } |
430 | |
431 | |
431 | MTH void set_owner (object *owner); |
432 | MTH void set_owner (object *owner); |
432 | MTH void set_speed (float speed); |
433 | MTH void set_speed (float speed); |
433 | MTH void set_glow_radius (sint8 rad); |
434 | MTH void set_glow_radius (sint8 rad); |
434 | bool change_weapon (object *ob); // deprecated |
|
|
435 | MTH bool change_skill (object *ob); // deprecated? |
435 | MTH bool change_skill (object *ob); // deprecated? |
436 | |
436 | |
437 | MTH void open_container (object *new_container); |
437 | MTH void open_container (object *new_container); |
438 | MTH void close_container () |
438 | MTH void close_container () |
439 | { |
439 | { |
… | |
… | |
660 | MTH void set_flag_inv (int flag, int value = 1); |
660 | MTH void set_flag_inv (int flag, int value = 1); |
661 | |
661 | |
662 | void enter_exit (object *exit);//Perl |
662 | void enter_exit (object *exit);//Perl |
663 | MTH void enter_map (maptile *newmap, int x, int y); |
663 | MTH void enter_map (maptile *newmap, int x, int y); |
664 | void player_goto (const_utf8_string path, int x, int y); // only for players |
664 | void player_goto (const_utf8_string path, int x, int y); // only for players |
665 | bool apply (object *ob, int aflags = AP_APPLY); |
665 | MTH bool apply (object *ob, int aflags = AP_APPLY); // ob may be 0 |
666 | |
666 | |
667 | // returns the mapspace this object is in |
667 | // returns the mapspace this object is in |
668 | mapspace &ms () const; |
668 | mapspace &ms () const; |
669 | |
669 | |
670 | // fully recursive iterator |
670 | // fully recursive iterator |