Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 9927 in orxonox.OLD for trunk/src/world_entities/test_entity.h


Ignore:
Timestamp:
Nov 14, 2006, 10:49:36 AM (19 years ago)
Author:
patrick
Message:

test entity for pps

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/world_entities/test_entity.h

    r9869 r9927  
    33
    44#include "world_entity.h"
    5 #include "physics_interface.h"
    65
    7 class MD2Loader;
    8 class MD2Model;
    9 class MD2Model2;
    10 struct t3DModel;
    11 class Material;
    126class TiXmlElement;
    13 class WorldEntity;
    147
    15 class TestEntity : public WorldEntity, public PhysicsInterface
     8
     9class TestEntity : public WorldEntity
    1610{
    17   ObjectListDeclaration(TestEntity);
    18  public:
    19   TestEntity ();
    20   TestEntity(const TiXmlElement* root);
    21   virtual ~TestEntity ();
     11    ObjectListDeclaration(TestEntity);
    2212
    23   void init();
    24   virtual void loadParams(const TiXmlElement* root);
     13  public:
     14    TestEntity ();
     15    TestEntity(const TiXmlElement* root);
     16    virtual ~TestEntity ();
    2517
    26   void setAnim(int animationIndex, int animPlaybackMode);
     18    void init();
     19    virtual void loadParams(const TiXmlElement* root);
    2720
    28   virtual void destroy(WorldEntity* killer);
    2921
    30   virtual void tick (float time);
    31   virtual void collidesWith(WorldEntity* entity, const Vector& location);
     22    virtual void tick (float time);
     23    virtual void draw() const;
    3224
    33  private:
    34   /* TESTING TESTING TESTING */
    35   t3DModel* model;
    36   MD2Model* md2Model;
    37   Material* material;
    38 
    39   WorldEntity* lastCollided;
    40 
    41   bool bDeath;
    4225};
    4326
Note: See TracChangeset for help on using the changeset viewer.