-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathFriend.h
More file actions
108 lines (86 loc) · 1.97 KB
/
Friend.h
File metadata and controls
108 lines (86 loc) · 1.97 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
#ifndef ___FRIEND_H__
#define ___FRIEND_H__
#include <gl\gl.h>
#include <gl\glu.h>
#include "Explosion.h"
class Friend {
public:
// Constructor
Friend(){}
// Destructor
~Friend() {
if (explosion != 0) {
delete explosion;
} // end if
} // end Destructor
// Initializes the pyramid height and width
void init(int);
// Renders a pyramid center about the local origin
void draw();
GLfloat getSpeed();
void setSpeed(GLfloat);
GLfloat getRadius();
void increaseSpeed();
void decreaseSpeed();
void stop();
bool isDestroyed();
void startExplosion();
void destroy();
Explosion* getExplosion();
int getShells();
int getBullets();
void fireShell();
void fireBullet();
int getPointValue();
GLfloat getDamageCapacity();
void takeDamage(GLfloat);
float takeCollisionDamage(int);
float takeRammingDamage(float, float);
void regen();
void forwardCollide();
void backwardCollide();
void unForwardCollide();
void unBackwardCollide();
bool isForwardCollided();
bool isBackwardCollided();
GLfloat getX();
GLfloat getY();
GLfloat getZ();
GLfloat getAzimuth();
GLfloat getRotationX();
GLfloat getRotationY();
bool isMGLatched();
void setX(GLfloat);
void setY(GLfloat);
void setZ(GLfloat);
void setAzimuth(GLfloat);
void setRotationX(GLfloat);
void setRotationY(GLfloat);
void setMGLatch(bool);
bool isRespawning();
void setRespawnFlag(bool);
GLuint camoTexture;
private:
GLuint FriendList;// display list identifier
GLfloat speed;
static GLfloat maxFwdSpeed;
static GLfloat maxRevSpeed;
GLfloat radius;
int shells;
int bullets;
int pointValue;
GLfloat damageCapacity;
GLfloat x;
GLfloat y;
GLfloat z;
GLfloat azimuth;
GLfloat rotationX;
GLfloat rotationY;
bool forwardCollided;
bool backwardCollided;
bool destroyed;
Explosion* explosion;
bool mgLatch;
bool respawned;
};
#endif