ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/deliantra/server/include/object.h
(Generate patch)

Comparing deliantra/server/include/object.h (file contents):
Revision 1.188 by root, Sun Nov 16 03:52:12 2008 UTC vs.
Revision 1.190 by root, Tue Dec 23 01:13:15 2008 UTC

405 { 405 {
406 open_container (0); 406 open_container (0);
407 } 407 }
408 408
409 MTH object *force_find (const shstr name); 409 MTH object *force_find (const shstr name);
410 MTH void force_add (const shstr name, int duration = 0); 410 MTH object *force_add (const shstr name, int duration = 0);
411 411
412 // overwrite the attachable should_invoke function with a version that also checks ev_want_type 412 // overwrite the attachable should_invoke function with a version that also checks ev_want_type
413 bool should_invoke (event_type event) 413 bool should_invoke (event_type event)
414 { 414 {
415 return ev_want_event [event] || ev_want_type [type] || cb; 415 return ev_want_event [event] || ev_want_type [type] || cb;
538 MTH bool is_inserted () const 538 MTH bool is_inserted () const
539 { 539 {
540 return !flag [FLAG_REMOVED]; 540 return !flag [FLAG_REMOVED];
541 } 541 }
542 542
543 MTH bool is_player () const
544 {
545 return !!contr;
546 }
547
548 MTH bool affects_los () const
549 {
550 return glow_radius || flag [FLAG_BLOCKSVIEW];
551 }
552
543 // returns the player that cna see this object, if any 553 // returns the player that cna see this object, if any
544 MTH object *visible_to () const; 554 MTH object *visible_to () const;
545 555
546 MTH std::string long_desc (object *who = 0); 556 MTH std::string long_desc (object *who = 0);
547 MTH std::string describe_monster (object *who = 0); 557 MTH std::string describe_monster (object *who = 0);
637 647
638 const char *query_inventory (object *who = 0, const char *indent = ""); 648 const char *query_inventory (object *who = 0, const char *indent = "");
639 649
640 MTH const_octet_string ref () const; // creates and returns a consistent persistent object reference 650 MTH const_octet_string ref () const; // creates and returns a consistent persistent object reference
641 static object *deref (const_octet_string ref); // returns the object from the generated refreence, if possible 651 static object *deref (const_octet_string ref); // returns the object from the generated refreence, if possible
652
653 // make some noise with given item into direction dir,
654 // currently only used for players to make them temporarily visible
655 // when they are invisible.
656 MTH void make_noise ();
642 657
643protected: 658protected:
644 void link (); 659 void link ();
645 void unlink (); 660 void unlink ();
646 661

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines