--- deliantra/server/include/object.h 2006/12/27 13:13:47 1.72 +++ deliantra/server/include/object.h 2006/12/30 21:07:46 1.74 @@ -290,8 +290,9 @@ MTH void change_luck (int value); // info must hold 256 * 3 bytes currently - MTH const char *debug_desc (char *info) const; + const char *debug_desc (char *info) const; MTH const char *debug_desc () const; + const char *object::flag_desc (char *desc, int len) const; MTH bool is_weapon () const { return type == ARROW || type == BOW || type == WEAPON; } MTH bool is_armor () const { return type == ARMOUR || type == SHIELD || type == HELMET @@ -305,6 +306,8 @@ || (type == SPELL_EFFECT && (subtype == SP_BULLET || subtype == SP_MAGIC_MISSILE)); } + MTH bool has_active_speed () const { return FABS(speed) >= MIN_ACTIVE_SPEED; } + // temporary: wether the objetc can be saved in a map file // contr => is a player // head => only save head of a multitile object @@ -336,6 +339,12 @@ // handles both inventory and map "positions" MTH object *insert_at (object *where, object *originator = 0, int flags = 0); + MTH void activate (bool recursive = true); + MTH void deactivate (bool recursive = true); + + void enter_exit (object *exit);//PERL + MTH void enter_map (maptile *newmap, int x, int y); + // returns the mapspace this object is in mapspace &ms () const;