Last change
on this file since 2097 was
2096,
checked in by chris, 21 years ago
|
orxonox/branches/chris: Messed with the Player class, added stuff here and there, debug world now creates a player and bind IO to it. Added some doxygen tags.
|
File size:
1.1 KB
|
Line | |
---|
1 | |
---|
2 | #ifndef WORLD_ENTITY_H |
---|
3 | #define WORLD_ENTITY_H |
---|
4 | |
---|
5 | #include "stdincl.h" |
---|
6 | //#include "data_tank.h" |
---|
7 | |
---|
8 | class Vector; |
---|
9 | class Ability; |
---|
10 | |
---|
11 | class WorldEntity |
---|
12 | { |
---|
13 | friend class World; |
---|
14 | |
---|
15 | public: |
---|
16 | WorldEntity (bool isFree); |
---|
17 | ~WorldEntity (); |
---|
18 | |
---|
19 | Location* get_location (); |
---|
20 | Placement* get_placement (); |
---|
21 | void set_collision (CollisionCluster* newhull); |
---|
22 | |
---|
23 | //void addAbility(Ability* ability); |
---|
24 | //void removeAbility(Ability* ability); |
---|
25 | |
---|
26 | virtual void post_spawn (); |
---|
27 | virtual void tick (float time); |
---|
28 | virtual void hit (WorldEntity* weapon, Vector loc); |
---|
29 | virtual void destroy (); |
---|
30 | virtual void collide (WorldEntity* other, Uint32 ownhitflags, Uint32 otherhitflags); |
---|
31 | virtual void command (Command* cmd); |
---|
32 | |
---|
33 | virtual void draw (); |
---|
34 | virtual void get_lookat (Location* locbuf); |
---|
35 | |
---|
36 | virtual void left_world (); |
---|
37 | |
---|
38 | private: |
---|
39 | bool bCollide; |
---|
40 | bool bDraw; |
---|
41 | bool bFree; // Whether entity movement is bound to the track |
---|
42 | |
---|
43 | WorldEntity* owner; |
---|
44 | CollisionCluster* collisioncluster; |
---|
45 | Placement place; |
---|
46 | Location loc; |
---|
47 | |
---|
48 | void init( Location* spawnloc, WorldEntity* spawnowner); |
---|
49 | void init( Placement* spawnplc, WorldEntity* spawnowner); |
---|
50 | }; |
---|
51 | |
---|
52 | #endif |
---|
Note: See
TracBrowser
for help on using the repository browser.