| Line | |
|---|
| 1 | |
|---|
| 2 | #ifndef NPC_H |
|---|
| 3 | #define NPC_H |
|---|
| 4 | |
|---|
| 5 | /* openGL Headers */ |
|---|
| 6 | #include <GL/glut.h> |
|---|
| 7 | |
|---|
| 8 | #include "ai.h" |
|---|
| 9 | #include "data_tank.h" |
|---|
| 10 | |
|---|
| 11 | class NPC { |
|---|
| 12 | |
|---|
| 13 | public: |
|---|
| 14 | NPC (); |
|---|
| 15 | ~NPC (); |
|---|
| 16 | |
|---|
| 17 | /* collision control */ |
|---|
| 18 | float collisionRadius; |
|---|
| 19 | |
|---|
| 20 | float xCor; |
|---|
| 21 | float yCor; |
|---|
| 22 | float zCor; |
|---|
| 23 | |
|---|
| 24 | void drawNPC(void); |
|---|
| 25 | void setPosition(float x, float y, float z); |
|---|
| 26 | void getPosition(float* x, float* y, float* z); |
|---|
| 27 | void addAI(AI* ai); |
|---|
| 28 | void setCollisionRadius(float r); |
|---|
| 29 | float getCollisionRadius(); |
|---|
| 30 | |
|---|
| 31 | private: |
|---|
| 32 | /* position of the non player space craft */ |
|---|
| 33 | |
|---|
| 34 | int npcType; |
|---|
| 35 | |
|---|
| 36 | |
|---|
| 37 | ; |
|---|
| 38 | |
|---|
| 39 | }; |
|---|
| 40 | |
|---|
| 41 | #endif |
|---|
Note: See
TracBrowser
for help on using the repository browser.