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

Comparing deliantra/server/include/newserver.h (file contents):
Revision 1.6 by root, Thu Aug 17 20:23:31 2006 UTC vs.
Revision 1.7 by root, Fri Aug 18 02:06:57 2006 UTC

1/* 1/*
2 * static char *rcsid_newserver_h = 2 * static char *rcsid_newserver_h =
3 * "$Id: newserver.h,v 1.6 2006/08/17 20:23:31 root Exp $"; 3 * "$Id: newserver.h,v 1.7 2006/08/18 02:06:57 root Exp $";
4 */ 4 */
5 5
6/* 6/*
7 CrossFire, A Multiplayer game for X-windows 7 CrossFire, A Multiplayer game for X-windows
8 8
45 45
46struct MapCell { 46struct MapCell {
47 short faces[MAP_LAYERS]; 47 short faces[MAP_LAYERS];
48 uint16 smooth[MAP_LAYERS]; 48 uint16 smooth[MAP_LAYERS];
49 int count; /* This is really darkness in the map1 command */ 49 int count; /* This is really darkness in the map1 command */
50 unsigned char stat_hp; // health of something in this space, or 0
50}; 51};
51 52
52/* This basically defines the largest size an 53/* This basically defines the largest size an
53 * archetype may be - it is used for allocation of 54 * archetype may be - it is used for allocation of
54 * some structures, as well as determining how far 55 * some structures, as well as determining how far
120 uint32 exp64:1; /* Client wants 64 bit exp data, as well as skill data */ 121 uint32 exp64:1; /* Client wants 64 bit exp data, as well as skill data */
121 uint32 newmapcmd:1; /* Send newmap command when entering new map SMACFIGGEN*/ 122 uint32 newmapcmd:1; /* Send newmap command when entering new map SMACFIGGEN*/
122 uint32 plugincmd:1; /* CF+ extend the protocol through a plug-in */ 123 uint32 plugincmd:1; /* CF+ extend the protocol through a plug-in */
123 uint32 mapinfocmd:1; /* CF+ return map info and send map change info */ 124 uint32 mapinfocmd:1; /* CF+ return map info and send map change info */
124 uint32 extcmd:1; /* CF+ call into extensions/plugins */ 125 uint32 extcmd:1; /* CF+ call into extensions/plugins */
126 uint32 extmap:1; /* CF+ extend map comamnd with extra data */
125 uint32 darkness:1; /* True if client wants darkness information */ 127 uint32 darkness:1; /* True if client wants darkness information */
126 uint32 image2:1; /* Client wants image2/face2 commands */ 128 uint32 image2:1; /* Client wants image2/face2 commands */
127 uint32 update_look:1; /* If true, we need to send the look window */ 129 uint32 update_look:1; /* If true, we need to send the look window */
128 uint32 can_write:1; /* Can we write to this socket? */ 130 uint32 can_write:1; /* Can we write to this socket? */
129 uint32 has_readable_type:1; /* If true client accept additional text information 131 uint32 has_readable_type:1; /* If true client accept additional text information
139 uint32 ext_mapinfos:1; /* If true client accept additionnal info on maps*/ 141 uint32 ext_mapinfos:1; /* If true client accept additionnal info on maps*/
140 /* Below are flags for extedend infos to pass to client 142 /* Below are flags for extedend infos to pass to client
141 * with S->C mapextended command */ 143 * with S->C mapextended command */
142 uint32 EMI_smooth:1; /* Send smooth in extendmapinfos*/ 144 uint32 EMI_smooth:1; /* Send smooth in extendmapinfos*/
143 145
144 struct mapstruct *current_map; /* CF+ last/current player map */ 146 struct mapstruct *current_map; // CF+ last/current player map
145 int current_x, current_y; /* CF+ last/current map position */ 147 int current_x, current_y; // CF+ last/current map position
146 148
147 /* Below here is information only relevant for old sockets */ 149 /* Below here is information only relevant for old sockets */
148 char *comment; /* name or listen comment */ 150 char *comment; /* name or listen comment */
149 enum Old_Mode old_mode; 151 enum Old_Mode old_mode;
150} NewSocket; 152} NewSocket;
201 203
202#define VERSION_CS 1023 /* version >= 1023 understand setup cmd */ 204#define VERSION_CS 1023 /* version >= 1023 understand setup cmd */
203#define VERSION_SC 1027 205#define VERSION_SC 1027
204#define VERSION_INFO "Crossfire+ Server" 206#define VERSION_INFO "Crossfire+ Server"
205 207
206
207
208#endif 208#endif

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines