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 #ifndef MINE_H
8 #define MINE_H
9 
10 #include "Vector.h"
11 #include "Game.h"
12 
13 enum MineOwnerType{
14 	MINE_PLAYER,
15 	MINE_ENEMY
16 };
17 
18 
19 class Mine {
20 public:
21 	Mine();
22 	~Mine();
23 	void Physics();
24 	void Collide();
25 	Ufo* NearestUfo();
26 	void Die();
27 	void Live();
28 	void Explode();
29 	int Hurt(float pain);
30 	Game* game;
31 
32 	Vector s;
33 	Vector v;
34 	Vector a;
35 	float spin;
36 
37 	float spawneffect;
38 	float maxspawneffect;
39 	float collideradius;
40 	float collideradius2;
41 	float sniffradius;
42 	float hp;
43 
44 	int alive;
45 
46 	int soundid;
47 };
48 
49 #endif
50