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.8 2006/08/21 07:13:32 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 |
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 */ |
|
|
127 | uint32 buggy_mapscroll:1; /* CF+ client crashes on large mapscrolls */ |
125 | uint32 darkness:1; /* True if client wants darkness information */ |
128 | uint32 darkness:1; /* True if client wants darkness information */ |
126 | uint32 image2:1; /* Client wants image2/face2 commands */ |
129 | uint32 image2:1; /* Client wants image2/face2 commands */ |
127 | uint32 update_look:1; /* If true, we need to send the look window */ |
130 | uint32 update_look:1; /* If true, we need to send the look window */ |
128 | uint32 can_write:1; /* Can we write to this socket? */ |
131 | uint32 can_write:1; /* Can we write to this socket? */ |
129 | uint32 has_readable_type:1; /* If true client accept additional text information |
132 | 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*/ |
142 | uint32 ext_mapinfos:1; /* If true client accept additionnal info on maps*/ |
140 | /* Below are flags for extedend infos to pass to client |
143 | /* Below are flags for extedend infos to pass to client |
141 | * with S->C mapextended command */ |
144 | * with S->C mapextended command */ |
142 | uint32 EMI_smooth:1; /* Send smooth in extendmapinfos*/ |
145 | uint32 EMI_smooth:1; /* Send smooth in extendmapinfos*/ |
143 | |
146 | |
144 | struct mapstruct *current_map; /* CF+ last/current player map */ |
147 | struct mapstruct *current_map; // CF+ last/current player map |
145 | int current_x, current_y; /* CF+ last/current map position */ |
148 | int current_x, current_y; // CF+ last/current map position |
|
|
149 | char client[64]; // CF+ client name/version |
146 | |
150 | |
147 | /* Below here is information only relevant for old sockets */ |
151 | /* Below here is information only relevant for old sockets */ |
148 | char *comment; /* name or listen comment */ |
152 | char *comment; /* name or listen comment */ |
149 | enum Old_Mode old_mode; |
153 | enum Old_Mode old_mode; |
150 | } NewSocket; |
154 | } NewSocket; |
… | |
… | |
201 | |
205 | |
202 | #define VERSION_CS 1023 /* version >= 1023 understand setup cmd */ |
206 | #define VERSION_CS 1023 /* version >= 1023 understand setup cmd */ |
203 | #define VERSION_SC 1027 |
207 | #define VERSION_SC 1027 |
204 | #define VERSION_INFO "Crossfire+ Server" |
208 | #define VERSION_INFO "Crossfire+ Server" |
205 | |
209 | |
206 | |
|
|
207 | |
|
|
208 | #endif |
210 | #endif |