Last change
on this file since 6908 was
6512,
checked in by bensch, 19 years ago
|
orxonox/trunk: loadParams is now virtual.
ALL THE CLASSES HAVE TO CALL
SuperClass::loadParams(root);
isntead of:
static_cast<SuperClass*>(this)→loadParams(root);
which was quite stupid anyways
|
File size:
743 bytes
|
Rev | Line | |
---|
[4245] | 1 | #ifndef _TEST_ENTITY_H |
---|
| 2 | #define _TEST_ENTITY_H |
---|
| 3 | |
---|
| 4 | #include "world_entity.h" |
---|
[4397] | 5 | #include "physics_interface.h" |
---|
[4245] | 6 | |
---|
| 7 | class MD2Loader; |
---|
| 8 | class MD2Model; |
---|
| 9 | class MD2Model2; |
---|
| 10 | struct t3DModel; |
---|
| 11 | class Material; |
---|
[6222] | 12 | class TiXmlElement; |
---|
[4245] | 13 | |
---|
[6278] | 14 | class TestEntity : public WorldEntity, public PhysicsInterface |
---|
[4245] | 15 | { |
---|
| 16 | friend class World; |
---|
| 17 | |
---|
| 18 | public: |
---|
| 19 | TestEntity (); |
---|
[6222] | 20 | TestEntity(const TiXmlElement* root); |
---|
[4245] | 21 | virtual ~TestEntity (); |
---|
| 22 | |
---|
[6222] | 23 | void init(); |
---|
[6512] | 24 | virtual void loadParams(const TiXmlElement* root); |
---|
[6222] | 25 | |
---|
[4488] | 26 | void setAnim(int animationIndex); |
---|
| 27 | |
---|
[4245] | 28 | virtual void tick (float time); |
---|
[5087] | 29 | virtual void collidesWith(WorldEntity* entity, const Vector& location); |
---|
[4245] | 30 | |
---|
| 31 | private: |
---|
| 32 | /* TESTING TESTING TESTING */ |
---|
| 33 | t3DModel* model; |
---|
| 34 | MD2Model* md2Model; |
---|
| 35 | Material* material; |
---|
| 36 | |
---|
| 37 | }; |
---|
| 38 | |
---|
| 39 | #endif /* _TEST_ENTITY_H */ |
---|
Note: See
TracBrowser
for help on using the repository browser.