Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 3583 in orxonox.OLD for orxonox/trunk/src/world_entities/player.h


Ignore:
Timestamp:
Mar 16, 2005, 11:08:33 PM (20 years ago)
Author:
patrick
Message:

orxonox/trunk: some changes in the character_attributes, projectile and weapon.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • orxonox/trunk/src/world_entities/player.h

    r3578 r3583  
    99#include "world_entity.h"
    1010
     11template<class T> class tList;
    1112class OBJModel;
     13class Weapon;
    1214
    1315//! Basic controllable WorldEntity
     
    1921  Player(bool isFree = false);
    2022  virtual ~Player();
     23
     24  void addWeapon(Weapon* weapon);
     25  void removeWeapon(Weapon* weapon);
    2126 
    2227  virtual void postSpawn();
    23   virtual void tick(float time);
     28  virtual void leftWorld();
    2429  virtual void hit(WorldEntity* weapon, Vector* loc);
    2530  virtual void collide(WorldEntity* other, Uint32 ownhitflags, Uint32 otherhitflags);
     31
     32  virtual void tick(float time); 
     33  virtual void draw();
     34
    2635  virtual void command(Command* cmd);
    27  
    28   virtual void draw();
    29   // virtual void getLookat(Location* locbuf);
    30  
    31   virtual void leftWorld();
    3236 
    3337 private:
     
    4044  bool bFire;            //!< fire button pressed.
    4145
     46  tList<Weapon>* weapons;//!< a list of weapon
     47
    4248  Vector velocity;       //!< the velocity of the player.
    4349  float travelSpeed;     //!< the current speed of the player (to make soft movement)
Note: See TracChangeset for help on using the changeset viewer.