Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

source: orxonox.OLD/orxonox/branches/chris/src/npc.h @ 2404

Last change on this file since 2404 was 2058, checked in by chris, 20 years ago

orxonox/branches/chris: Trunk remerged into my branch started on SDL reconfiguration

File size: 599 bytes
RevLine 
[1853]1
2#ifndef NPC_H
3#define NPC_H
4
[2058]5#include "world_entity.h"
[1853]6
[2058]7class AI;
[1904]8
[2058]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);
[2058]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.