-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dronedemort.h
63 lines (52 loc) · 1.57 KB
/
Dronedemort.h
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
/**************************************************/
/* Name: Ian Nordeng */
/* */
/* Header file for Dronedemort */
/* */
/* CSci 446 / fall 2013 */
/**************************************************/
#ifndef Drondemort_H
#define Drondemort_H
#include "QuadTimer.h"
#include "Quadrotor.h"
#include <string>
using namespace std;
class Dronedemort:public Quadrotor
{
private:
QuadTimer time;
float propAngle;
float propSpeed;
float ga;
float gunAngle;
float gunPitch;
bool animate;
void drawEllipsoid(unsigned int uiStacks, unsigned int uiSlices, float fA, float fB, float fC);
void drawBlade();
void drawProparms(int rotorDirection);
void rotateProps();
void animateGun(unsigned char key, int x, int y);
void drawButton(float x1, float y1, float x2, float y2);
GLuint body;
GLuint eye;
unsigned char * data;
unsigned char * data1;
glm::mat4 barrelOrientationMatrix;
int pointBarrelFlag;
string whichQuad;
public:
Dronedemort();
string getName();
void toggleAnimate();
GLvoid LoadGLTextures();
void drawQuad();
void changePropSpeed(float increment);
void rotateGun(float ga);
void pitchGun(float gunPitch);
void output(GLfloat x, GLfloat y, char const* text);
void collided();
glm::vec3 getBarrelPosition();
void pointBarrel();
void customCommandParser(string commandString);
};
#endif