… | |
… | |
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 |
105 | struct player_memset : zero_initialised |
105 | struct 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 | |
210 | typedef struct pl : player_memset, attachable<struct pl> |
210 | typedef 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 | |