-
Notifications
You must be signed in to change notification settings - Fork 0
/
NeoQuad.h
61 lines (50 loc) · 1.32 KB
/
NeoQuad.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
/******************************************************************
* Name : NeoQuad.h
* Purpose: Header File for NeoQuad
*
* Author: Akkas Uddin Haque
* Email : [email protected]
*
* Creation Date: 09/19/2015
*******************************************************************/
#ifndef NEOQUAD_H
#define NEOQUAD_H
#include "QuadTimer.h"
#include "Quadrotor.h"
#include "Timeline.h"
#include <string>
using namespace std;
#define sqrt2 1.41421356237
enum State{NEUTRAL=1,POWERINGUP,POWEREDUP,POWERINGDOWN};
class NeoQuad:public Quadrotor
{
private:
QuadTimer propTime;
int numTextures;
float propAngle;
float propSpeed;
bool animate;
State currentState;
void drawEllipsoid(unsigned int uiStacks, unsigned int uiSlices, float fA, float fB, float fC);
void drawBlade();
void drawPropellers(int rotorDirection);
void drawGun(float gunScale);
void drawGuns();
void rotateProps();
unsigned char * data;
protected:
string getName();
public:
void collided();
GLuint EarthMap;
GLuint propTex;
NeoQuad();
void toggleAnimate();
void drawQuad();
void changePropSpeed(float increment);
void powerToggle();
glm::vec3 getBarrelPosition();
void customCommandParser(string commandString);
void LoadGLTextures();
};
#endif