--- deliantra/server/include/object.h 2010/04/06 21:11:48 1.235 +++ deliantra/server/include/object.h 2010/04/10 04:54:09 1.238 @@ -381,6 +381,7 @@ // recursively destroy all objects in inventory, optionally dropping them to the ground instead MTH void destroy_inv (bool drop_to_ground = false); + MTH void destroy_inv_fast (); // like destroy_inv (false), but only works when *this is destroyed, too MTH object *insert (object *item); // insert into inventory MTH void play_sound (faceidx sound) const; MTH void say_msg (const_utf8_string msg) const; @@ -534,6 +535,8 @@ MTH bool is_dragon () const; + MTH bool is_immunity () const { return invisible && type == SIGN; } + MTH bool has_active_speed () const { return speed >= MIN_ACTIVE_SPEED; } // temporary: wether the object can be saved in a map file @@ -729,6 +732,7 @@ void statusmsg (const_utf8_string msg, int color = NDI_BLACK); void failmsg (const_utf8_string msg, int color = NDI_RED); + void failmsgf (const_utf8_string format, ...); // always NDI_RED... const_utf8_string query_inventory (object *who = 0, const_utf8_string indent = "");