1 /*
2 * This code is released under the GNU General Public License.  See COPYING for
3 * details.  Copyright 2003 John Spray: spray_john@users.sourceforge.net
4 */
5 
6 
7 
8 #ifndef PLAYER_H
9 #define PLAYER_H
10 
11 #include "Vector.h"
12 #include "Game.h"
13 #include "PowerUp.h"
14 
15 class Player{
16 public:
17 	void Physics();
18 	void Collide();
19 	int	SafeToRespawn();
20 	void Respawn();
21 	void Unspawn();
22 	void Explode();
23 	Player(Game* newgame);
24 	~Player();
25 	void FireMissile();
26   void ShootCannon();
27   void StartCannon();
28   void StopCannon();
29 	void TriggerShield();
30 	void GivePowerUp(poweruptype);
31 	void Hurt(float pain);
32 	Game* game;
33 
34 	Vector s;
35 	Vector v;
36 	Vector a;
37 	float thrust;
38 
39 	float strafea;
40 	float strafev;
41 
42 	float bear; //RADIANS!
43 	float bearv;
44 	float beara;
45 	float bouncecycle;
46 	float shieldeffect;
47 	float maxshieldeffect;
48 	float collideradius;
49 	float collideradius2;
50 	float radarrange;
51 
52 	int cannonfiring;
53 	float cannonwait;
54 	float cannonperiod;
55 
56 	Vector tracer;
57 	Vector tracersource;
58 
59 	float hp;
60 	int alive;
61 	int lives;
62 	float highlightlives;     //if >0, life icons flash (set from GiveLife)
63 
64 	poweruptype powerup;
65 	float poweruptimer;
66 	float maxpoweruptimer;
67 
68 	int soundid;
69 
70 	int collideflag;
71 
72 };
73 
74 #endif //PLAYER_H
75