source:
orxonox.OLD/orxonox/trunk/src/npc.h
@
3009
Last change on this file since 3009 was 2036, checked in by patrick, 20 years ago | |
---|---|
File size: 599 bytes |
Rev | Line | |
---|---|---|
[1853] | 1 | |
2 | #ifndef NPC_H | |
3 | #define NPC_H | |
4 | ||
[2036] | 5 | #include "world_entity.h" |
[1853] | 6 | |
[2036] | 7 | class AI; |
[1904] | 8 | |
[2036] | 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); |
[2036] | 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.