source:
orxonox.OLD/orxonox/trunk/src/npc.h
@
2015
| Last change on this file since 2015 was 1956, checked in by bensch, 21 years ago | |
|---|---|
| File size: 603 bytes | |
| Rev | Line | |
|---|---|---|
| [1853] | 1 | |
| 2 | #ifndef NPC_H | |
| 3 | #define NPC_H | |
| 4 | ||
| [1899] | 5 | /* openGL Headers */ |
| 6 | #include <GL/glut.h> | |
| [1853] | 7 | |
| [1904] | 8 | #include "ai.h" |
| 9 | #include "data_tank.h" | |
| 10 | ||
| [1853] | 11 | class NPC { |
| 12 | ||
| 13 | public: | |
| 14 | NPC (); | |
| 15 | ~NPC (); | |
| 16 | ||
| [1899] | 17 | /* collision control */ |
| 18 | float collisionRadius; | |
| 19 | ||
| 20 | float xCor; | |
| 21 | float yCor; | |
| 22 | float zCor; | |
| 23 | ||
| [1858] | 24 | void drawNPC(void); |
| [1899] | 25 | void setPosition(float x, float y, float z); |
| 26 | void getPosition(float* x, float* y, float* z); | |
| [1904] | 27 | void addAI(AI* ai); |
| [1899] | 28 | void setCollisionRadius(float r); |
| [1931] | 29 | float getCollisionRadius(void); |
| 30 | int hit(void); | |
| 31 | void die(void); | |
| [1858] | 32 | |
| 33 | private: | |
| 34 | /* position of the non player space craft */ | |
| 35 | ||
| [1855] | 36 | int npcType; |
| [1931] | 37 | int hasDied; |
| [1855] | 38 | |
| [1896] | 39 | |
| [1858] | 40 | ; |
| 41 | ||
| [1853] | 42 | }; |
| 43 | ||
| 44 | #endif |
Note: See TracBrowser
for help on using the repository browser.










