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.243 by root, Tue Apr 13 22:05:42 2010 UTC vs.
Revision 1.245 by root, Thu Apr 15 02:51:39 2010 UTC

567 567
568 static bool msg_has_dialogue (const char *msg) { return *msg == '@'; } 568 static bool msg_has_dialogue (const char *msg) { return *msg == '@'; }
569 569
570 MTH bool has_dialogue () const { return msg_has_dialogue (&msg); } 570 MTH bool has_dialogue () const { return msg_has_dialogue (&msg); }
571 571
572 /* need_identify returns true if the item should be identified. This
573 * function really should not exist - by default, any item not identified
574 * should need it.
575 */
576 MTH bool need_identify () const;
577
572 // returns the outermost owner, never returns 0 578 // returns the outermost owner, never returns 0
573 MTH object *outer_owner () 579 MTH object *outer_owner ()
574 { 580 {
575 object *op; 581 object *op;
576 582
643 MTH bool has_carried_lights () const 649 MTH bool has_carried_lights () const
644 { 650 {
645 return glow_radius; 651 return glow_radius;
646 } 652 }
647 653
648 // returns the player that cna see this object, if any 654 // returns the player that can see this object, if any
649 MTH object *visible_to () const; 655 MTH object *visible_to () const;
650 656
651 MTH std::string long_desc (object *who = 0); // query_name . " " . describe 657 MTH std::string long_desc (object *who = 0); // query_name . " " . describe
652 MTH std::string describe_monster (object *who = 0); 658 MTH std::string describe_monster (object *who = 0);
653 MTH std::string describe_item (object *who = 0); 659 MTH std::string describe_item (object *who = 0);
689 695
690 void enter_exit (object *exit);//Perl 696 void enter_exit (object *exit);//Perl
691 MTH void enter_map (maptile *newmap, int x, int y); 697 MTH void enter_map (maptile *newmap, int x, int y);
692 void player_goto (const_utf8_string path, int x, int y); // only for players 698 void player_goto (const_utf8_string path, int x, int y); // only for players
693 MTH bool apply (object *ob, int aflags = AP_APPLY); // ob may be 0 699 MTH bool apply (object *ob, int aflags = AP_APPLY); // ob may be 0
700
701 MTH object *mark () const;
694 702
695 // returns the mapspace this object is in 703 // returns the mapspace this object is in
696 mapspace &ms () const; 704 mapspace &ms () const;
697 705
698 // fully recursive iterator 706 // fully recursive iterator

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines