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

Comparing deliantra/server/include/client.h (file contents):
Revision 1.94 by root, Tue Apr 6 21:11:48 2010 UTC vs.
Revision 1.98 by root, Sun Apr 11 23:48:57 2010 UTC

177 177
178 bool ACC (RW, afk); /* player is afk */ 178 bool ACC (RW, afk); /* player is afk */
179 bool ACC (RW, sent_scroll); 179 bool ACC (RW, sent_scroll);
180 bool ACC (RW, sound); /* does the client want sound */ 180 bool ACC (RW, sound); /* does the client want sound */
181 bool ACC (RW, newmapcmd); /* Send newmap command when entering new map SMACFIGGEN */ 181 bool ACC (RW, newmapcmd); /* Send newmap command when entering new map SMACFIGGEN */
182
182 bool ACC (RW, plugincmd); // extend the protocol through a plug-in */ 183 bool ACC (RW, plugincmd); // extend the protocol through a plug-in */
183 bool ACC (RW, mapinfocmd); // return map info and send map change info 184 bool ACC (RW, mapinfocmd); // return map info and send map change info
184 uint8_t ACC (RW, extcmd); // call into extensions/plugins 185 uint8_t ACC (RW, extcmd); // call into extensions/plugins
186 bool ACC (RW, need_delinv0); /* If true, we need to delinv 0 before sending new floorbox */
185 bool ACC (RW, update_look); /* If true, we need to send the look window */ 187 bool ACC (RW, update_look); /* If true, we need to send the look window */
186 bool ACC (RW, update_spells); // If true, we need to esrv_update_spells 188 bool ACC (RW, update_spells); // If true, we need to esrv_update_spells
187 bool ACC (RW, has_readable_type); /* If true client accept additional text information */ 189 bool ACC (RW, has_readable_type); /* If true client accept additional text information */
188 /* used to arrange text in books, scrolls, or scripted dialogs */ 190 /* used to arrange text in books, scrolls, or scripted dialogs */
189 bool ACC (RW, monitor_spells); /* Client wishes to be informed when their spell list changes */ 191 bool ACC (RW, monitor_spells); /* Client wishes to be informed when their spell list changes */
190 bool ACC (RW, smoothing); // deliantra-style smoothing 192 bool ACC (RW, smoothing); // deliantra-style smoothing
191 193
192 bool ACC (RW, force_newmap); // force a newmap before next map update 194 bool ACC (RW, force_newmap); // force a newmap before next map update
193 uint32 ACC (RW, supported_readables); /* each bit is a readable supported by client */
194 uint32 ACC (RW, cs_version), ACC (RW, sc_version); /* versions of the client */
195 uint16 ACC (RW, look_position); /* start of drawing of look window */ 195 uint16 ACC (RW, look_position); /* start of drawing of look window */
196 uint16 ACC (RW, mss); // likely tcp maximum segment size 196 uint16 ACC (RW, mss); // likely tcp maximum segment size
197 uint8 ACC (RW, mapmode); /* Type of map commands the client wants. */ 197 uint8 ACC (RW, mapmode); /* Type of map commands the client wants. */
198 uint8 ACC (RW, mapx), ACC (RW, mapy); /* How large a map the client wants */ 198 uint8 ACC (RW, mapx), ACC (RW, mapy); /* How large a map the client wants */
199 uint8 ACC (RW, itemcmd); /* What version of the 'item' protocol command to use */ 199 uint8 ACC (RW, itemcmd); /* What version of the 'item' protocol command to use */
200 200
201 maptile_ptr ACC (RW, current_map); // CF+ last/current player map 201 maptile_ptr ACC (RW, current_map); // CF+ last/current player map
202 region_ptr ACC (RW, current_region); // CF+ last/current player region 202 region_ptr ACC (RW, current_region); // CF+ last/current player region
203 int ACC (RW, current_x), ACC (RW, current_y); // CF+ last/current map position 203 int ACC (RW, current_x), ACC (RW, current_y); // CF+ last/current map position
204 shstr ACC (RW, version); // CF+ client name/version
205 uint8 ACC (RW, faceset); // CF+ selected faceset 204 uint8 ACC (RW, faceset); // CF+ selected faceset
206 205
207 tstamp ACC (RW, last_send); // last data send on socket. 206 tstamp ACC (RW, last_send); // last data send on socket.
208 207
209 float ACC (RW, socket_timeout); /* after how many seconds of no ack do we declare dead */ 208 float ACC (RW, socket_timeout); /* after how many seconds of no ack do we declare dead */
357 ((__sockPtr)->supported_readables & (1<<(__type))) ) 356 ((__sockPtr)->supported_readables & (1<<(__type))) )
358 357
359#define FACE_TYPES 1 358#define FACE_TYPES 1
360#define PNG_FACE_INDEX 0 359#define PNG_FACE_INDEX 0
361 360
362#define VERSION_CS 1023 /* version >= 1023 understand setup cmd */
363#define VERSION_SC 1026
364//#define VERSION_SC 1027 // requestinfo image_info and image_sums, makes extending faces on the fly impossible
365#define VERSION_INFO "Deliantra Server"
366
367//-GPL 361//-GPL
368 362
369typedef object_vector<client, &client::active> sockvec; 363typedef object_vector<client, &client::active> sockvec;
370 364
371extern sockvec clients; 365extern sockvec clients;

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines