Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

source: orxonox.OLD/orxonox/trunk/src/npc.h @ 2779

Last change on this file since 2779 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
RevLine 
[1853]1
2#ifndef NPC_H
3#define NPC_H
4
[2036]5#include "world_entity.h"
[1853]6
[2036]7class AI;
[1904]8
[2036]9class 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.