Last change
on this file since 2112 was
2101,
checked in by chris, 20 years ago
|
orxonox/branches/chris: Finished the "GETITTOCOMPILE" project… compiling should work now, but linking is a different story
|
File size:
1.1 KB
|
Line | |
---|
1 | |
---|
2 | #ifndef WORLD_ENTITY_H |
---|
3 | #define WORLD_ENTITY_H |
---|
4 | |
---|
5 | #include "stdincl.h" |
---|
6 | |
---|
7 | class CollisionCluster; |
---|
8 | |
---|
9 | class WorldEntity |
---|
10 | { |
---|
11 | friend class World; |
---|
12 | |
---|
13 | public: |
---|
14 | WorldEntity (bool isFree = false); |
---|
15 | ~WorldEntity (); |
---|
16 | |
---|
17 | Location* get_location (); |
---|
18 | Placement* get_placement (); |
---|
19 | void set_collision (CollisionCluster* newhull); |
---|
20 | |
---|
21 | bool isFree (); |
---|
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 | const bool bFree; |
---|
40 | bool bCollide; |
---|
41 | bool bDraw; |
---|
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.