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.22 by root, Tue Dec 26 05:44:14 2006 UTC vs.
Revision 1.24 by root, Sun Jan 7 02:39:14 2007 UTC

1/* 1/*
2 CrossFire, A Multiplayer game for the X Window System 2 CrossFire, A Multiplayer game for the X Window System
3 3
4 Copyright (C) 2005, 2006, 2007 Marc Lehmann & Crossfire+ Development Team
4 Copyright (C) 2002 Mark Wedel & Crossfire Development Team 5 Copyright (C) 2002 Mark Wedel & Crossfire Development Team
5 Copyright (C) 1992 Frank Tore Johansen 6 Copyright (C) 1992 Frank Tore Johansen
6 7
7 This program is free software; you can redistribute it and/or modify 8 This program is free software; you can redistribute it and/or modify
8 it under the terms of the GNU General Public License as published by 9 it under the terms of the GNU General Public License as published by
91 ST_DEAD, // socket is dead 92 ST_DEAD, // socket is dead
92 ST_SETUP, // initial handshake / setup / login 93 ST_SETUP, // initial handshake / setup / login
93 ST_PLAYING, // logged in an playing 94 ST_PLAYING, // logged in an playing
94 ST_CUSTOM, // waiting for custom reply 95 ST_CUSTOM, // waiting for custom reply
95 96
96 ST_CONFIRM_QUIT,
97 ST_CHANGE_CLASS, 97 ST_CHANGE_CLASS,
98 ST_GET_PARTY_PASSWORD, 98 ST_GET_PARTY_PASSWORD,
99}; 99};
100 100
101// a handler for a specific type of packet 101// a handler for a specific type of packet
169{ 169{
170 int ACC (RW, fd); 170 int ACC (RW, fd);
171 unsigned int inbuf_len; // number of bytes valid in inbuf 171 unsigned int inbuf_len; // number of bytes valid in inbuf
172 uint8 *faces_sent; // This is a bitmap on sent face status 172 uint8 *faces_sent; // This is a bitmap on sent face status
173 statsinfo stats; 173 statsinfo stats;
174 int ACC (RO, active);
174 175
175 client_container cc_inv, cc_other; 176 client_container cc_inv, cc_other;
176 Buffer outputbuffer; 177 Buffer outputbuffer;
177 178
178 char *ACC (RW, host); /* Which host it is connected from (ip address) */ 179 char *ACC (RW, host); /* Which host it is connected from (ip address) */
306 307
307#define VERSION_CS 1023 /* version >= 1023 understand setup cmd */ 308#define VERSION_CS 1023 /* version >= 1023 understand setup cmd */
308#define VERSION_SC 1027 309#define VERSION_SC 1027
309#define VERSION_INFO "Crossfire+ Server" 310#define VERSION_INFO "Crossfire+ Server"
310 311
311typedef unordered_vector<client *> sockvec; 312typedef object_vector<client, &client::active> sockvec;
312 313
313extern sockvec clients; 314extern sockvec clients;
315
316#define for_all_clients(var) \
317 for (int _i = 0; _i < clients.size (); ++_i) \
318 declvar (client *, var, clients [_i])
319
314extern int nrofpixmaps; //TODO: hrmpf, should go 320extern int nrofpixmaps; //TODO: hrmpf, should go
315 321
316#endif 322#endif
317 323

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines