1 | /* |
1 | /* |
2 | * static char *rcsid_player_h = |
2 | * static char *rcsid_player_h = |
3 | * "$Id: player.h,v 1.1.1.1 2006/02/03 07:12:50 root Exp $"; |
3 | * "$Id: player.h,v 1.1.1.2 2006/02/22 18:01:58 elmex 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 | |
… | |
… | |
137 | sint8 last_level; /* Last level we sent to client */ |
137 | sint8 last_level; /* Last level we sent to client */ |
138 | |
138 | |
139 | /* Try to put all the bitfields together - saves some small amount of memory */ |
139 | /* Try to put all the bitfields together - saves some small amount of memory */ |
140 | uint32 braced:1; /* Will not move if braced, only attack */ |
140 | uint32 braced:1; /* Will not move if braced, only attack */ |
141 | uint32 tmp_invis:1; /* Will invis go away when we attack ? */ |
141 | uint32 tmp_invis:1; /* Will invis go away when we attack ? */ |
142 | const char *invis_race;/* What race invisible to? */ |
142 | const char *invis_race; /* What race invisible to? */ |
143 | uint32 do_los:1; /* If true, need to call update_los() in draw(), and clear */ |
143 | uint32 do_los:1; /* If true, need to call update_los() in draw(), and clear */ |
144 | uint32 fire_on:1; /* Player should fire object, not move */ |
144 | uint32 fire_on:1; /* Player should fire object, not move */ |
145 | uint32 run_on:1; /* Player should keep moving in dir until run is off */ |
145 | uint32 run_on:1; /* Player should keep moving in dir until run is off */ |
146 | uint32 has_hit:1; /* If set, weapon_sp instead of speed will count */ |
146 | uint32 has_hit:1; /* If set, weapon_sp instead of speed will count */ |
147 | uint32 name_changed:1; /* If true, the player has set a name. */ |
147 | uint32 name_changed:1; /* If true, the player has set a name. */ |
… | |
… | |
204 | Output_Buf outputs[NUM_OUTPUT_BUFS]; /* holds output strings to client */ |
204 | Output_Buf outputs[NUM_OUTPUT_BUFS]; /* holds output strings to client */ |
205 | uint16 outputs_sync; /* How often to print, no matter what */ |
205 | uint16 outputs_sync; /* How often to print, no matter what */ |
206 | uint16 outputs_count; /* Print if this count is exceeded */ |
206 | uint16 outputs_count; /* Print if this count is exceeded */ |
207 | object *mark; /* marked object */ |
207 | object *mark; /* marked object */ |
208 | uint32 mark_count; /* count of mark object */ |
208 | uint32 mark_count; /* count of mark object */ |
|
|
209 | object *transport; /* transport the player is in */ |
209 | /* Special DM fields */ |
210 | /* Special DM fields */ |
210 | tag_t* stack_items; /* Item stack for patch/dump/... commands */ |
211 | tag_t* stack_items; /* Item stack for patch/dump/... commands */ |
211 | int stack_position; /* Current stack position, 0 for no item */ |
212 | int stack_position; /* Current stack position, 0 for no item */ |
212 | } player; |
213 | } player; |