--- deliantra/server/include/object.h 2006/12/30 10:16:10 1.73 +++ deliantra/server/include/object.h 2006/12/30 21:07:46 1.74 @@ -292,6 +292,7 @@ // info must hold 256 * 3 bytes currently 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