--- deliantra/server/include/object.h 2008/11/16 03:52:12 1.188 +++ deliantra/server/include/object.h 2008/12/23 00:39:48 1.189 @@ -407,7 +407,7 @@ } MTH object *force_find (const shstr name); - MTH void force_add (const shstr name, int duration = 0); + MTH object *force_add (const shstr name, int duration = 0); // overwrite the attachable should_invoke function with a version that also checks ev_want_type bool should_invoke (event_type event) @@ -540,6 +540,11 @@ return !flag [FLAG_REMOVED]; } + MTH bool affects_los () const + { + return glow_radius || flag [FLAG_BLOCKSVIEW]; + } + // returns the player that cna see this object, if any MTH object *visible_to () const; @@ -640,6 +645,11 @@ MTH const_octet_string ref () const; // creates and returns a consistent persistent object reference static object *deref (const_octet_string ref); // returns the object from the generated refreence, if possible + // make some noise with given item into direction dir, + // currently only used for players to make them temporarily visible + // when they are invisible. + MTH void make_noise (); + protected: void link (); void unlink ();