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










