Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

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


Ignore:
Timestamp:
Jul 5, 2004, 9:51:48 PM (20 years ago)
Author:
patrick
Message:

/orxonox/trunk/src: making doxygen comments in worldentity, player, world; extending API of worldentity; inserting list.h in world - this version does not compile

File:
1 edited

Legend:

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

    r2043 r2077  
     1/*!
     2    \file world_entity.h
     3    \brief A base class for all objects in the world
     4   
     5    This is the base class of all objects in the game-world. If you want to have an object in the world, that can realy interact with other objects and that is also dispbayable etc. you have to extend this class and override the needed functions.
     6*/
     7
     8
    19
    210#ifndef WORLD_ENTITY_H
     
    816class Ability;
    917
     18//! WorldEntity
     19/**
     20  A base class for all objects in the world
     21
     22  This is the base class of all objects in the game-world. If you want to have an object in the world, that can realy interact with other objects and that is also dispbayable etc. you have to extend this class and override the needed functions.
     23*/
    1024class WorldEntity {
    1125
     
    2842  void removeAbility(Ability* ability);
    2943
    30   virtual void tick(float time);
     44  virtual void tick(float dt);
    3145  virtual void paint();
    3246  /* virtual void actionEvent(Event* event); */
     
    4357
    4458 private:
    45   Vector* position;
    46   Vector* orientation;
     59  Vector* position;    //!< position of the entity
     60  Vector* orientation; //!< orientation of the entity
    4761  /* List of abilities */
    48   float health;
    49   float speed;
     62  float health; //!< health of the entity, if any
     63  float speed; //!< speed of the entity if any
    5064  /* entity can be in the air or at ground: */
    51   int airGround;
     65  int airGround; //!< is it air or bound to the ground (ground=0, air=1)
    5266
    5367 
Note: See TracChangeset for help on using the changeset viewer.