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.52 by root, Mon Jun 4 12:19:08 2007 UTC vs.
Revision 1.56 by root, Sun Jun 24 15:33:41 2007 UTC

115struct client : zero_initialised, attachable 115struct client : zero_initialised, attachable
116{ 116{
117 int ACC (RW, fd); 117 int ACC (RW, fd);
118 unsigned int inbuf_len; // number of bytes valid in inbuf 118 unsigned int inbuf_len; // number of bytes valid in inbuf
119 statsinfo stats; 119 statsinfo stats;
120 int ACC (RO, active); 120 object_vector_index ACC (RO, active);
121 player_ptr ACC (RO, pl);
121 122
122 /* The following is the setup for a ring buffer for storing output 123 /* The following is the setup for a ring buffer for storing output
123 * data that the OS can't handle right away. 124 * data that the OS can't handle right away.
124 */ 125 */
125 struct 126 struct
187 region *ACC (RW, current_region); // CF+ last/current player region 188 region *ACC (RW, current_region); // CF+ last/current player region
188 int ACC (RW, current_x), ACC (RW, current_y); // CF+ last/current map position 189 int ACC (RW, current_x), ACC (RW, current_y); // CF+ last/current map position
189 shstr ACC (RW, version); // CF+ client name/version 190 shstr ACC (RW, version); // CF+ client name/version
190 uint8 ACC (RW, faceset); // CF+ selected faceset 191 uint8 ACC (RW, faceset); // CF+ selected faceset
191 192
192 player_ptr ACC (RO, pl); 193 tstamp ACC (RW, last_send); // last data send on socket.
193 194
194 int ACC (RW, rtt), ACC (RW, rttvar); /* round-trip time and -variance, if known */ 195 int ACC (RW, rtt), ACC (RW, rttvar); /* round-trip time and -variance, if known */
195 196
196 int ACC (RW, rate_avail); // current rate balance 197 int ACC (RW, rate_avail); // current rate balance
197 int ACC (RW, max_rate); // max. # of bytes to send per tick 198 int ACC (RW, max_rate); // max. # of bytes to send per tick
260 void send_drawinfo (const char *msg, int flags = NDI_BLACK); 261 void send_drawinfo (const char *msg, int flags = NDI_BLACK);
261 MTH void send_face (faceidx facenum); 262 MTH void send_face (faceidx facenum);
262 MTH void send_image (faceidx facenum); 263 MTH void send_image (faceidx facenum);
263 MTH void send_faces (object *ob); 264 MTH void send_faces (object *ob);
264 MTH void send_animation (short anim_num); 265 MTH void send_animation (short anim_num);
265 MTH void send_msg (int color, const char *type, const char *msg); 266 void send_msg (int color, const char *type, const char *msg);
266 267
267 // called when something under the player changes 268 // called when something under the player changes
268 MTH void floorbox_update () { update_look = 1; } 269 MTH void floorbox_update () { update_look = 1; }
269 // called when the player has been moved 270 // called when the player has been moved
270 MTH void floorbox_reset () { look_position = 0; floorbox_update (); } 271 MTH void floorbox_reset () { look_position = 0; floorbox_update (); }
313#define PNG_FACE_INDEX 0 314#define PNG_FACE_INDEX 0
314 315
315#define VERSION_CS 1023 /* version >= 1023 understand setup cmd */ 316#define VERSION_CS 1023 /* version >= 1023 understand setup cmd */
316#define VERSION_SC 1026 317#define VERSION_SC 1026
317//#define VERSION_SC 1027 // requestinfo image_info and image_sums, makes extending faces on the fly impossible 318//#define VERSION_SC 1027 // requestinfo image_info and image_sums, makes extending faces on the fly impossible
318#define VERSION_INFO "Crossfire+ Server" 319#define VERSION_INFO "Crossfire TRT Server"
319 320
320typedef object_vector<client, &client::active> sockvec; 321typedef object_vector<client, &client::active> sockvec;
321 322
322extern sockvec clients; 323extern sockvec clients;
323 324

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines