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.245 by root, Thu Apr 15 02:51:39 2010 UTC vs.
Revision 1.253 by root, Sun May 9 21:43:41 2010 UTC

64extern Body_Locations body_locations[NUM_BODY_LOCATIONS]; 64extern Body_Locations body_locations[NUM_BODY_LOCATIONS];
65 65
66#define NUM_COINS 4 /* number of coin types */ 66#define NUM_COINS 4 /* number of coin types */
67extern const char *const coins[NUM_COINS + 1]; 67extern const char *const coins[NUM_COINS + 1];
68 68
69// restart server when object_count reaches this value
70#define RESTART_COUNT 0xe0000000
71
69/* 72/*
70 * Each object (this also means archetypes!) could have a few of these 73 * Each object (this also means archetypes!) could have a few of these
71 * "dangling" from it; this could also end up containing 'parse errors'. 74 * "dangling" from it; this could also end up containing 'parse errors'.
72 * 75 *
73 * key and value are shared-strings. 76 * key and value are shared-strings.
691 MTH void deactivate_recursive (); 694 MTH void deactivate_recursive ();
692 695
693 // set the given flag on all objects in the inventory recursively 696 // set the given flag on all objects in the inventory recursively
694 MTH void set_flag_inv (int flag, int value = 1); 697 MTH void set_flag_inv (int flag, int value = 1);
695 698
696 void enter_exit (object *exit);//Perl 699 void enter_exit (object *exit); // perl
697 MTH void enter_map (maptile *newmap, int x, int y); 700 MTH bool enter_map (maptile *newmap, int x, int y);
698 void player_goto (const_utf8_string path, int x, int y); // only for players 701 void player_goto (const_utf8_string path, int x, int y); // only for players
699 MTH bool apply (object *ob, int aflags = AP_APPLY); // ob may be 0 702 MTH bool apply (object *ob, int aflags = AP_APPLY); // ob may be 0
700 703
701 MTH object *mark () const; 704 MTH object *mark () const;
702 705
757 return weight + carrying; 760 return weight + carrying;
758 } 761 }
759 762
760 MTH struct region *region () const; 763 MTH struct region *region () const;
761 764
762 void statusmsg (const_utf8_string msg, int color = NDI_BLACK); 765 MTH void statusmsg (const_utf8_string msg, int color = NDI_BLACK);
763 void failmsg (const_utf8_string msg, int color = NDI_RED); 766 MTH void failmsg (const_utf8_string msg, int color = NDI_RED);
764 void failmsgf (const_utf8_string format, ...); // always NDI_RED... 767 void failmsgf (const_utf8_string format, ...); // always NDI_RED...
765 768
766 const_utf8_string query_inventory (object *who = 0, const_utf8_string indent = ""); 769 MTH const_utf8_string query_inventory (object *who = 0, const_utf8_string indent = "");
767 770
768 MTH const_octet_string ref () const; // creates and returns a consistent persistent object reference 771 MTH const_octet_string ref () const; // creates and returns a consistent persistent object reference
769 static object *deref (const_octet_string ref); // returns the object from the generated refreence, if possible 772 static object *deref (const_octet_string ref); // returns the object from the generated reference, if possible
770 773
771 // make some noise with given item into direction dir, 774 // make some noise with given item into direction dir,
772 // currently only used for players to make them temporarily visible 775 // currently only used for players to make them temporarily visible
773 // when they are invisible. 776 // when they are invisible.
774 MTH void make_noise (); 777 MTH void make_noise ();
958#define INS_NO_MERGE 0x0001 961#define INS_NO_MERGE 0x0001
959#define INS_ABOVE_FLOOR_ONLY 0x0002 962#define INS_ABOVE_FLOOR_ONLY 0x0002
960#define INS_NO_WALK_ON 0x0004 963#define INS_NO_WALK_ON 0x0004
961#define INS_ON_TOP 0x0008 964#define INS_ON_TOP 0x0008
962#define INS_BELOW_ORIGINATOR 0x0010 965#define INS_BELOW_ORIGINATOR 0x0010
966#define INS_NO_AUTO_EXIT 0x0020 // temporary, fix exits instead
963 967
964//-GPL 968//-GPL
965 969
966#endif 970#endif
967 971

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines