Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

source: orxonox.OLD/orxonox/branches/buerli/src/npc.h @ 3089

Last change on this file since 3089 was 2036, checked in by patrick, 20 years ago

orxonxo/trunk/src: extended framework: class inheritance, right including (had som bugs), framework not finished yet

File size: 599 bytes
Line 
1
2#ifndef NPC_H
3#define NPC_H
4
5#include "world_entity.h"
6
7class AI;
8
9class NPC : public WorldEntity {
10
11 public:
12  NPC ();
13  ~NPC ();
14
15  /* collision control */
16  float collisionRadius;
17
18  float xCor;
19  float yCor;
20  float zCor;
21
22  void drawNPC(void);
23  void paint(void);
24  void setPosition(float x, float y, float z);
25  void getPosition(float* x, float* y, float* z);
26  void addAI(AI* ai);
27  void setCollisionRadius(float r);
28  float getCollisionRadius(void);
29  int hit(void);
30  void die(void);
31
32 private:
33  /* position of the non player space craft */
34
35  int npcType;
36  int hasDied;
37
38
39;
40
41};
42
43#endif
Note: See TracBrowser for help on using the repository browser.