1 #ifndef INC_PLAYER_H
2 #define INC_PLAYER_H
3 
4 #include <SDL/SDL.h>
5 
6 #include "coords.h"
7 #include "gfx.h"
8 
9 struct Player
10 {
11     int shootCoolrate;
12     int shootHeat;
13     int shootMaxHeat;
14 
15     float shield;
16 
17     RelPolarCoord aim;
18 
19     int shootTimer;
20     int podTimer;
21 
22     int score;
23     bool doneLaunchedPod;
24     bool dead;
25 
26     float aimAccuracy();
27 
28     void draw(SDL_Surface* surface, const View& view, View* boundView=NULL,
29 	bool noAA=false);
30 
31     void update(int time, bool superShield = false);
32 
33     float radius();
34 
35     Player();
36 };
37 
38 #endif /* INC_PLAYER_H */
39