1 | /* |
1 | /* |
2 | * static char *rcsid_player_h = |
2 | * static char *rcsid_player_h = |
3 | * "$Id: player.h,v 1.2 2006/04/18 16:54:19 root Exp $"; |
3 | * "$Id: player.h,v 1.3 2006/04/19 08:25:25 root Exp $"; |
4 | */ |
4 | */ |
5 | |
5 | |
6 | /* |
6 | /* |
7 | CrossFire, A Multiplayer game for X-windows |
7 | CrossFire, A Multiplayer game for X-windows |
8 | |
8 | |
… | |
… | |
104 | #endif |
104 | #endif |
105 | sint64 total_exp; |
105 | sint64 total_exp; |
106 | uint32 kills; |
106 | uint32 kills; |
107 | } partylist; |
107 | } partylist; |
108 | |
108 | |
|
|
109 | // the layout of this structure cnanot be changed unless adjusting the inialisation code |
|
|
110 | // in server/player.c:get_player has been verified. |
109 | typedef struct pl { |
111 | typedef struct pl { |
110 | struct pl *next; /* Pointer to next player, NULL if this is last */ |
112 | struct pl *next; /* Pointer to next player, NULL if this is last */ |
|
|
113 | NewSocket socket; /* Socket information for this player */ |
111 | object *ob; /* The object representing the player */ |
114 | object *ob; /* The object representing the player */ |
112 | NewSocket socket; /* Socket information for this player */ |
|
|
113 | struct mapdef *loading; /* When entering a map in progress of loading, not really used */ |
115 | struct mapdef *loading; /* When entering a map in progress of loading, not really used */ |
114 | rangetype shoottype; /* Which range-attack is being used by player */ |
116 | rangetype shoottype; /* Which range-attack is being used by player */ |
115 | bowtype_t bowtype; /* which firemode? */ |
117 | bowtype_t bowtype; /* which firemode? */ |
116 | petmode_t petmode; /* which petmode? */ |
118 | petmode_t petmode; /* which petmode? */ |
117 | object *ranges[range_size];/* object for each range. Set up in fix player. Note */ |
119 | object *ranges[range_size];/* object for each range. Set up in fix player. Note */ |