Last change
on this file since 10640 was
8778,
checked in by patrick, 19 years ago
|
trunk: test model die function reimplemented
|
File size:
833 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 | public: |
---|
18 | TestEntity (); |
---|
19 | TestEntity(const TiXmlElement* root); |
---|
20 | virtual ~TestEntity (); |
---|
21 | |
---|
22 | void init(); |
---|
23 | virtual void loadParams(const TiXmlElement* root); |
---|
24 | |
---|
25 | void setAnim(int animationIndex, int animPlaybackMode); |
---|
26 | |
---|
27 | virtual void destroy(); |
---|
28 | |
---|
29 | virtual void tick (float time); |
---|
30 | virtual void collidesWith(WorldEntity* entity, const Vector& location); |
---|
31 | |
---|
32 | private: |
---|
33 | /* TESTING TESTING TESTING */ |
---|
34 | t3DModel* model; |
---|
35 | MD2Model* md2Model; |
---|
36 | Material* material; |
---|
37 | |
---|
38 | WorldEntity* lastCollided; |
---|
39 | |
---|
40 | bool bDeath; |
---|
41 | }; |
---|
42 | |
---|
43 | #endif /* _TEST_ENTITY_H */ |
---|
Note: See
TracBrowser
for help on using the repository browser.