1 | /* |
1 | /* |
2 | * static char *rcsid_newserver_h = |
2 | * static char *rcsid_newserver_h = |
3 | * "$Id: newserver.h,v 1.5 2006/08/13 17:16:02 elmex Exp $"; |
3 | * "$Id: newserver.h,v 1.9 2006/08/24 10:58:38 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 | |
46 | struct MapCell { |
46 | struct 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 |
|
|
51 | tag_t player; // this is, unfortunately, very wasteful of memory space, but pretty bandwidth-efficient |
50 | }; |
52 | }; |
51 | |
53 | |
52 | /* This basically defines the largest size an |
54 | /* This basically defines the largest size an |
53 | * archetype may be - it is used for allocation of |
55 | * archetype may be - it is used for allocation of |
54 | * some structures, as well as determining how far |
56 | * some structures, as well as determining how far |
… | |
… | |
120 | uint32 exp64:1; /* Client wants 64 bit exp data, as well as skill data */ |
122 | 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*/ |
123 | uint32 newmapcmd:1; /* Send newmap command when entering new map SMACFIGGEN*/ |
122 | uint32 plugincmd:1; /* CF+ extend the protocol through a plug-in */ |
124 | uint32 plugincmd:1; /* CF+ extend the protocol through a plug-in */ |
123 | uint32 mapinfocmd:1; /* CF+ return map info and send map change info */ |
125 | uint32 mapinfocmd:1; /* CF+ return map info and send map change info */ |
124 | uint32 extcmd:1; /* CF+ call into extensions/plugins */ |
126 | uint32 extcmd:1; /* CF+ call into extensions/plugins */ |
|
|
127 | uint32 extmap:1; /* CF+ extend map comamnd with extra data */ |
|
|
128 | uint32 buggy_mapscroll:1; /* CF+ client crashes on large mapscrolls */ |
125 | uint32 darkness:1; /* True if client wants darkness information */ |
129 | uint32 darkness:1; /* True if client wants darkness information */ |
126 | uint32 image2:1; /* Client wants image2/face2 commands */ |
130 | uint32 image2:1; /* Client wants image2/face2 commands */ |
127 | uint32 update_look:1; /* If true, we need to send the look window */ |
131 | uint32 update_look:1; /* If true, we need to send the look window */ |
128 | uint32 can_write:1; /* Can we write to this socket? */ |
132 | uint32 can_write:1; /* Can we write to this socket? */ |
129 | uint32 has_readable_type:1; /* If true client accept additional text information |
133 | 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*/ |
143 | uint32 ext_mapinfos:1; /* If true client accept additionnal info on maps*/ |
140 | /* Below are flags for extedend infos to pass to client |
144 | /* Below are flags for extedend infos to pass to client |
141 | * with S->C mapextended command */ |
145 | * with S->C mapextended command */ |
142 | uint32 EMI_smooth:1; /* Send smooth in extendmapinfos*/ |
146 | uint32 EMI_smooth:1; /* Send smooth in extendmapinfos*/ |
143 | |
147 | |
144 | struct mapstruct *current_map; /* CF+ current player map */ |
148 | struct mapstruct *current_map; // CF+ last/current player map |
|
|
149 | int current_x, current_y; // CF+ last/current map position |
|
|
150 | char client[64]; // CF+ client name/version |
145 | |
151 | |
146 | /* Below here is information only relevant for old sockets */ |
152 | /* Below here is information only relevant for old sockets */ |
147 | char *comment; /* name or listen comment */ |
153 | char *comment; /* name or listen comment */ |
148 | enum Old_Mode old_mode; |
154 | enum Old_Mode old_mode; |
149 | } NewSocket; |
155 | } NewSocket; |
… | |
… | |
200 | |
206 | |
201 | #define VERSION_CS 1023 /* version >= 1023 understand setup cmd */ |
207 | #define VERSION_CS 1023 /* version >= 1023 understand setup cmd */ |
202 | #define VERSION_SC 1027 |
208 | #define VERSION_SC 1027 |
203 | #define VERSION_INFO "Crossfire+ Server" |
209 | #define VERSION_INFO "Crossfire+ Server" |
204 | |
210 | |
205 | |
|
|
206 | |
|
|
207 | #endif |
211 | #endif |