Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

source: orxonox.OLD/tags/0.1-pre-alpha/src/world_entity.h @ 7224

Last change on this file since 7224 was 2043, checked in by patrick, 20 years ago

orxonox/tunk/src: extended worldentity, added doxygen comments, added class ability (empty)

File size: 1.1 KB
Line 
1
2#ifndef WORLD_ENTITY_H
3#define WORLD_ENTITY_H
4
5#include "data_tank.h"
6
7class Vector;
8class Ability;
9
10class WorldEntity {
11
12 public:
13  WorldEntity ();
14  ~WorldEntity ();
15
16
17  void setPosition(Vector* position);
18  Vector* getPosition();
19  void setOrientation(Vector* orientation);
20  Vector* getOrientation();
21  void setSpawnPoint(Vector* place);
22  void setSpeed(float speed);
23  float getSpeed();
24  void setHealth(float health);
25  float getHealth();
26
27  void addAbility(Ability* ability);
28  void removeAbility(Ability* ability);
29
30  virtual void tick(float time);
31  virtual void paint();
32  /* virtual void actionEvent(Event* event); */
33  virtual void collide(WorldEntity* we, Vector loc);
34  virtual void hit(WorldEntity* weapon, Vector loc);
35  virtual void destroy();
36
37  virtual void entityPreEnter();
38  virtual void entityPostEnter();
39  virtual void entityPreQuit();
40  virtual void entityPostQuit();
41
42 
43
44 private:
45  Vector* position;
46  Vector* orientation;
47  /* List of abilities */ 
48  float health;
49  float speed;
50  /* entity can be in the air or at ground: */
51  int airGround;
52
53 
54
55};
56
57#endif
Note: See TracBrowser for help on using the repository browser.