-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathShell.h
More file actions
48 lines (35 loc) · 781 Bytes
/
Shell.h
File metadata and controls
48 lines (35 loc) · 781 Bytes
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
#ifndef ___SHELL_H__
#define ___SHELL_H__
#include <gl\gl.h>
#include <gl\glu.h>
#define FACTOR 10
class Shell {
public:
// Constructor
Shell(){}
// Initializes the pyramid height and width
void init(GLfloat, GLfloat, GLfloat, GLfloat);
// Renders a pyramid center about the local origin
void draw();
int getID();
GLfloat getX();
GLfloat getY();
GLfloat getZ();
GLfloat getAzimuth();
GLfloat getRange();
void updateRealPosition();
void increaseRange();
GLfloat getRealX();
GLfloat getRealZ();
GLfloat getDamage();
private:
static int count;
int id;
GLuint ShellList;// display list identifier
GLfloat x, y, z;
GLfloat azimuth;
GLfloat range;
GLfloat realX, realY, realZ;
GLfloat damage;
};
#endif