forked from afavaro/SPACEBATS
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathBody.h
More file actions
51 lines (39 loc) · 744 Bytes
/
Body.h
File metadata and controls
51 lines (39 loc) · 744 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
49
50
51
#ifndef BODY_H
#define BODY_H
#include "Framework.h"
#include "Model.h"
#include "Framebuffer.h"
#include <list>
#include <btBulletDynamicsCommon.h>
const int NUM_LANDMARKS = 1;
enum BodyType {
ASTEROID, //0
EROS, //1
GOLEVKA, //2
JUNO, //3
GATE, //4
SPACEBAT, //5
PEPSI, //6
JUPITER, //7
LUSH, //8
END, //9
MINE, //10
BIGRED, //11
BIGBAT, //12
NUM_BODY_TYPES
};
class Body: public btRigidBody {
public:
Body(Model *model, btRigidBody::btRigidBodyConstructionInfo &btInfo, BodyType ty);
~Body();
virtual void draw(RenderPass pass);
BodyType getType();
void printType();
bool isHealthType();
bool isCollisionType();
bool isEndType();
protected:
Model *model;
BodyType type;
};
#endif