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

Comparing deliantra/server/include/player.h (file contents):
Revision 1.11 by root, Sun Sep 3 00:18:41 2006 UTC vs.
Revision 1.12 by root, Mon Sep 4 11:07:59 2006 UTC

100 sint64 total_exp; 100 sint64 total_exp;
101 uint32 kills; 101 uint32 kills;
102} partylist; 102} partylist;
103 103
104// memsettable part of player 104// memsettable part of player
105struct player_memset : zero_initialised 105struct player_pod
106{ 106{
107 object *ob; /* The object representing the player */ 107 object *ob; /* The object representing the player */
108 mapstruct *loading; /* When entering a map in progress of loading, not really used */ 108 mapstruct *loading; /* When entering a map in progress of loading, not really used */
109 rangetype shoottype; /* Which range-attack is being used by player */ 109 rangetype shoottype; /* Which range-attack is being used by player */
110 bowtype_t bowtype; /* which firemode? */ 110 bowtype_t bowtype; /* which firemode? */
205 /* Special DM fields */ 205 /* Special DM fields */
206 tag_t* stack_items; /* Item stack for patch/dump/... commands */ 206 tag_t* stack_items; /* Item stack for patch/dump/... commands */
207 int stack_position; /* Current stack position, 0 for no item */ 207 int stack_position; /* Current stack position, 0 for no item */
208}; 208};
209 209
210typedef struct pl : player_memset, attachable<struct pl> 210typedef struct pl : zero_initialised, attachable<struct pl>, player_pod
211{ 211{
212 static data_type get_dt () { return DT_PLAYER; }
213
214 struct pl *next; /* Pointer to next player, NULL if this is last */ 212 struct pl *next; /* Pointer to next player, NULL if this is last */
215 NewSocket socket; /* Socket information for this player */ 213 NewSocket socket; /* Socket information for this player */
216} player; 214} player;
217 215

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines