Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

source: orxonox.OLD/orxonox/branches/old.john/src/npc.h @ 3415

Last change on this file since 3415 was 1956, checked in by bensch, 20 years ago

orxonox/trunk: now the Trunk should be merged with the new Makefile. Hopefully it works

File size: 603 bytes
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
11class 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(void);
30  int hit(void);
31  void die(void);
32
33 private:
34  /* position of the non player space craft */
35
36  int npcType;
37  int hasDied;
38
39
40;
41
42};
43
44#endif
Note: See TracBrowser for help on using the repository browser.