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.252 by root, Sun May 9 21:29:20 2010 UTC vs.
Revision 1.255 by root, Fri Jul 2 19:54:41 2010 UTC

61 const char *nonuse_name; /* Name to describe objects we can't use */ 61 const char *nonuse_name; /* Name to describe objects we can't use */
62} Body_Locations; 62} Body_Locations;
63 63
64extern Body_Locations body_locations[NUM_BODY_LOCATIONS]; 64extern Body_Locations body_locations[NUM_BODY_LOCATIONS];
65 65
66// for each set of directions (1 == up, 2 == right, 4 == down, 8 == left)
67// contaisn the wall suffix (0, 1_3, 1_4 and so on).
68extern const char *wall_suffix[16];
69
66#define NUM_COINS 4 /* number of coin types */ 70#define NUM_COINS 4 /* number of coin types */
67extern const char *const coins[NUM_COINS + 1]; 71extern const char *const coins[NUM_COINS + 1];
68 72
69// restart server when object_count reaches this value 73// restart server when object_count reaches this value
70#define RESTART_COUNT 0xe0000000 74#define RESTART_COUNT 0xe0000000
700 MTH bool enter_map (maptile *newmap, int x, int y); 704 MTH bool enter_map (maptile *newmap, int x, int y);
701 void player_goto (const_utf8_string path, int x, int y); // only for players 705 void player_goto (const_utf8_string path, int x, int y); // only for players
702 MTH bool apply (object *ob, int aflags = AP_APPLY); // ob may be 0 706 MTH bool apply (object *ob, int aflags = AP_APPLY); // ob may be 0
703 707
704 MTH object *mark () const; 708 MTH object *mark () const;
709 MTH void splay_marked ();
705 710
706 // returns the mapspace this object is in 711 // returns the mapspace this object is in
707 mapspace &ms () const; 712 mapspace &ms () const;
708 713
709 // fully recursive iterator 714 // fully recursive iterator
767 void failmsgf (const_utf8_string format, ...); // always NDI_RED... 772 void failmsgf (const_utf8_string format, ...); // always NDI_RED...
768 773
769 MTH const_utf8_string query_inventory (object *who = 0, const_utf8_string indent = ""); 774 MTH const_utf8_string query_inventory (object *who = 0, const_utf8_string indent = "");
770 775
771 MTH const_octet_string ref () const; // creates and returns a consistent persistent object reference 776 MTH const_octet_string ref () const; // creates and returns a consistent persistent object reference
772 MTH static object *deref (const_octet_string ref); // returns the object from the generated reference, if possible 777 static object *deref (const_octet_string ref); // returns the object from the generated reference, if possible
773 778
774 // make some noise with given item into direction dir, 779 // make some noise with given item into direction dir,
775 // currently only used for players to make them temporarily visible 780 // currently only used for players to make them temporarily visible
776 // when they are invisible. 781 // when they are invisible.
777 MTH void make_noise (); 782 MTH void make_noise ();

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines