Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 2043 in orxonox.OLD for orxonox/trunk/src/world_entity.h


Ignore:
Timestamp:
Jun 30, 2004, 8:38:43 PM (21 years ago)
Author:
patrick
Message:

orxonox/tunk/src: extended worldentity, added doxygen comments, added class ability (empty)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • orxonox/trunk/src/world_entity.h

    r2036 r2043  
    55#include "data_tank.h"
    66
     7class Vector;
     8class Ability;
    79
    810class WorldEntity {
     
    1315
    1416
    15   /*void setPosition( Vector position );*/
    16   /* Vector*  void getPosition();*/
    17   void setOrientation(/* Vector orientation*/);
    18   /* Vector* */ void getOrientation();
     17  void setPosition(Vector* position);
     18  Vector* getPosition();
     19  void setOrientation(Vector* orientation);
     20  Vector* getOrientation();
     21  void setSpawnPoint(Vector* place);
    1922  void setSpeed(float speed);
    2023  float getSpeed();
     
    2225  float getHealth();
    2326
    24   void addAbility();
    25   void removeAbility();
     27  void addAbility(Ability* ability);
     28  void removeAbility(Ability* ability);
    2629
    27   virtual void tick(float dt);
     30  virtual void tick(float time);
    2831  virtual void paint();
    2932  /* virtual void actionEvent(Event* event); */
    30   virtual void collide(WorldEntity* we /*, Vector n */);
    31   virtual void hurt();
     33  virtual void collide(WorldEntity* we, Vector loc);
     34  virtual void hit(WorldEntity* weapon, Vector loc);
    3235  virtual void destroy();
    3336
     37  virtual void entityPreEnter();
     38  virtual void entityPostEnter();
     39  virtual void entityPreQuit();
     40  virtual void entityPostQuit();
     41
     42 
     43
    3444 private:
    35   /* Vector* position; */
    36   /* Vector* orientation; */
     45  Vector* position;
     46  Vector* orientation;
    3747  /* List of abilities */
    3848  float health;
    3949  float speed;
     50  /* entity can be in the air or at ground: */
     51  int airGround;
     52
    4053 
    4154
Note: See TracChangeset for help on using the changeset viewer.