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.235 by root, Tue Apr 6 21:11:48 2010 UTC vs.
Revision 1.238 by root, Sat Apr 10 04:54:09 2010 UTC

379 destroy (); 379 destroy ();
380 } 380 }
381 381
382 // recursively destroy all objects in inventory, optionally dropping them to the ground instead 382 // recursively destroy all objects in inventory, optionally dropping them to the ground instead
383 MTH void destroy_inv (bool drop_to_ground = false); 383 MTH void destroy_inv (bool drop_to_ground = false);
384 MTH void destroy_inv_fast (); // like destroy_inv (false), but only works when *this is destroyed, too
384 MTH object *insert (object *item); // insert into inventory 385 MTH object *insert (object *item); // insert into inventory
385 MTH void play_sound (faceidx sound) const; 386 MTH void play_sound (faceidx sound) const;
386 MTH void say_msg (const_utf8_string msg) const; 387 MTH void say_msg (const_utf8_string msg) const;
387 388
388 void do_remove (); 389 void do_remove ();
532 && (subtype == SP_BULLET || subtype == SP_MAGIC_MISSILE)); } 533 && (subtype == SP_BULLET || subtype == SP_MAGIC_MISSILE)); }
533 MTH bool is_range () const { return type == BOW || type == ROD || type == WAND || type == HORN; } 534 MTH bool is_range () const { return type == BOW || type == ROD || type == WAND || type == HORN; }
534 535
535 MTH bool is_dragon () const; 536 MTH bool is_dragon () const;
536 537
538 MTH bool is_immunity () const { return invisible && type == SIGN; }
539
537 MTH bool has_active_speed () const { return speed >= MIN_ACTIVE_SPEED; } 540 MTH bool has_active_speed () const { return speed >= MIN_ACTIVE_SPEED; }
538 541
539 // temporary: wether the object can be saved in a map file 542 // temporary: wether the object can be saved in a map file
540 // contr => is a player 543 // contr => is a player
541 // head => only save head of a multitile object 544 // head => only save head of a multitile object
727 730
728 MTH struct region *region () const; 731 MTH struct region *region () const;
729 732
730 void statusmsg (const_utf8_string msg, int color = NDI_BLACK); 733 void statusmsg (const_utf8_string msg, int color = NDI_BLACK);
731 void failmsg (const_utf8_string msg, int color = NDI_RED); 734 void failmsg (const_utf8_string msg, int color = NDI_RED);
735 void failmsgf (const_utf8_string format, ...); // always NDI_RED...
732 736
733 const_utf8_string query_inventory (object *who = 0, const_utf8_string indent = ""); 737 const_utf8_string query_inventory (object *who = 0, const_utf8_string indent = "");
734 738
735 MTH const_octet_string ref () const; // creates and returns a consistent persistent object reference 739 MTH const_octet_string ref () const; // creates and returns a consistent persistent object reference
736 static object *deref (const_octet_string ref); // returns the object from the generated refreence, if possible 740 static object *deref (const_octet_string ref); // returns the object from the generated refreence, if possible

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines