1 | /* |
1 | /* |
2 | * static char *rcsid_newserver_h = |
2 | * static char *rcsid_newserver_h = |
3 | * "$Id: newserver.h,v 1.1 2006/02/03 07:12:49 root 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 |
… | |
… | |
117 | uint32 facecache:1; /* If true, client is caching images */ |
119 | uint32 facecache:1; /* If true, client is caching images */ |
118 | uint32 sent_scroll:1; |
120 | uint32 sent_scroll:1; |
119 | uint32 sound:1; /* does the client want sound */ |
121 | uint32 sound:1; /* does the client want sound */ |
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*/ |
|
|
124 | uint32 plugincmd:1; /* CF+ extend the protocol through a plug-in */ |
|
|
125 | uint32 mapinfocmd:1; /* CF+ return map info and send map change info */ |
|
|
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 */ |
122 | uint32 darkness:1; /* True if client wants darkness information */ |
129 | uint32 darkness:1; /* True if client wants darkness information */ |
123 | uint32 image2:1; /* Client wants image2/face2 commands */ |
130 | uint32 image2:1; /* Client wants image2/face2 commands */ |
124 | 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 */ |
125 | uint32 can_write:1; /* Can we write to this socket? */ |
132 | uint32 can_write:1; /* Can we write to this socket? */ |
126 | 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 |
… | |
… | |
136 | 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*/ |
137 | /* Below are flags for extedend infos to pass to client |
144 | /* Below are flags for extedend infos to pass to client |
138 | * with S->C mapextended command */ |
145 | * with S->C mapextended command */ |
139 | uint32 EMI_smooth:1; /* Send smooth in extendmapinfos*/ |
146 | uint32 EMI_smooth:1; /* Send smooth in extendmapinfos*/ |
140 | |
147 | |
|
|
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 |
|
|
151 | |
141 | /* Below here is information only relevant for old sockets */ |
152 | /* Below here is information only relevant for old sockets */ |
142 | char *comment; /* name or listen comment */ |
153 | char *comment; /* name or listen comment */ |
143 | enum Old_Mode old_mode; |
154 | enum Old_Mode old_mode; |
144 | } NewSocket; |
155 | } NewSocket; |
145 | |
156 | |
… | |
… | |
193 | |
204 | |
194 | extern Socket_Info socket_info; |
205 | extern Socket_Info socket_info; |
195 | |
206 | |
196 | #define VERSION_CS 1023 /* version >= 1023 understand setup cmd */ |
207 | #define VERSION_CS 1023 /* version >= 1023 understand setup cmd */ |
197 | #define VERSION_SC 1027 |
208 | #define VERSION_SC 1027 |
198 | #define VERSION_INFO "Crossfire Server" |
209 | #define VERSION_INFO "Crossfire+ Server" |
199 | |
|
|
200 | |
|
|
201 | |
210 | |
202 | #endif |
211 | #endif |