Last change
on this file since 7740 was
7113,
checked in by patrick, 19 years ago
|
trunk: different death animations
|
File size:
848 bytes
|
Line | |
---|
1 | #ifndef _TEST_ENTITY_H |
---|
2 | #define _TEST_ENTITY_H |
---|
3 | |
---|
4 | #include "world_entity.h" |
---|
5 | #include "physics_interface.h" |
---|
6 | |
---|
7 | class MD2Loader; |
---|
8 | class MD2Model; |
---|
9 | class MD2Model2; |
---|
10 | struct t3DModel; |
---|
11 | class Material; |
---|
12 | class TiXmlElement; |
---|
13 | class WorldEntity; |
---|
14 | |
---|
15 | class TestEntity : public WorldEntity, public PhysicsInterface |
---|
16 | { |
---|
17 | friend class World; |
---|
18 | |
---|
19 | public: |
---|
20 | TestEntity (); |
---|
21 | TestEntity(const TiXmlElement* root); |
---|
22 | virtual ~TestEntity (); |
---|
23 | |
---|
24 | void init(); |
---|
25 | virtual void loadParams(const TiXmlElement* root); |
---|
26 | |
---|
27 | void setAnim(int animationIndex, int animPlaybackMode); |
---|
28 | |
---|
29 | void dieHard(); |
---|
30 | |
---|
31 | virtual void tick (float time); |
---|
32 | virtual void collidesWith(WorldEntity* entity, const Vector& location); |
---|
33 | |
---|
34 | private: |
---|
35 | /* TESTING TESTING TESTING */ |
---|
36 | t3DModel* model; |
---|
37 | MD2Model* md2Model; |
---|
38 | Material* material; |
---|
39 | |
---|
40 | WorldEntity* lastCollided; |
---|
41 | |
---|
42 | bool bDeath; |
---|
43 | }; |
---|
44 | |
---|
45 | #endif /* _TEST_ENTITY_H */ |
---|
Note: See
TracBrowser
for help on using the repository browser.