Last change
on this file since 1899 was
1899,
checked in by patrick, 21 years ago
|
trunk/orxonox: collision detection implemented: simple spheres. all debug informations still print out to console. one enemy added, no AI, no move, waits to be killed. No kill signal implemented yet: look debug infos on console.
|
File size:
487 bytes
|
Line | |
---|
1 | |
---|
2 | #ifndef NPC_H |
---|
3 | #define NPC_H |
---|
4 | |
---|
5 | /* openGL Headers */ |
---|
6 | #include <GL/glut.h> |
---|
7 | |
---|
8 | class NPC { |
---|
9 | |
---|
10 | public: |
---|
11 | NPC (); |
---|
12 | ~NPC (); |
---|
13 | |
---|
14 | /* collision control */ |
---|
15 | float collisionRadius; |
---|
16 | |
---|
17 | float xCor; |
---|
18 | float yCor; |
---|
19 | float zCor; |
---|
20 | |
---|
21 | void drawNPC(void); |
---|
22 | void setPosition(float x, float y, float z); |
---|
23 | void getPosition(float* x, float* y, float* z); |
---|
24 | void setCollisionRadius(float r); |
---|
25 | float getCollisionRadius(); |
---|
26 | |
---|
27 | private: |
---|
28 | /* position of the non player space craft */ |
---|
29 | |
---|
30 | int npcType; |
---|
31 | |
---|
32 | |
---|
33 | ; |
---|
34 | |
---|
35 | }; |
---|
36 | |
---|
37 | #endif |
---|
Note: See
TracBrowser
for help on using the repository browser.