Last change
on this file since 2065 was
2058,
checked in by chris, 20 years ago
|
orxonox/branches/chris: Trunk remerged into my branch started on SDL reconfiguration
|
File size:
1.1 KB
|
Line | |
---|
1 | |
---|
2 | #ifndef WORLD_ENTITY_H |
---|
3 | #define WORLD_ENTITY_H |
---|
4 | |
---|
5 | #include "data_tank.h" |
---|
6 | |
---|
7 | class Vector; |
---|
8 | class Ability; |
---|
9 | |
---|
10 | class 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.