Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

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


Ignore:
Timestamp:
Jul 2, 2005, 10:55:47 PM (19 years ago)
Author:
bensch
Message:

orxonox/trunk: 1. the crosshair is registered, @patrick: i thought it was a little bit harder… worked myself through the EventSystem, it is quite cool :)

  1. Player now knows a loadParams and init routine

also testing the Crosshair inside of the Player

File:
1 edited

Legend:

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

    r4746 r4780  
    1 /*! 
     1/*!
    22    \file player.h
    33    \brief Implements a basic controllable WorldEntity
     
    2222{
    2323  friend class World;
    24  
     24
    2525 public:
    2626  Player();
     
    2828  virtual ~Player();
    2929
     30  void init();
     31  void loadParams(const TiXmlElement* root);
     32
    3033  void addWeapon(Weapon* weapon);
    3134  void removeWeapon(Weapon* weapon);
    32  
     35
    3336  virtual void postSpawn();
    3437  virtual void leftWorld();
     
    3639  virtual void collide(WorldEntity* other, Uint32 ownhitflags, Uint32 otherhitflags);
    3740
    38   virtual void tick(float time); 
     41  virtual void tick(float time);
    3942  virtual void draw();
    4043
     
    4245
    4346  virtual void process(const Event &event);
    44  
     47
    4548 private:
    4649  bool bUp;              //!< up button pressed.
     
    6366  float travelSpeed;     //!< the current speed of the player (to make soft movement)
    6467  float acceleration;    //!< the acceleration of the player.
    65  
     68
    6669  void move(float time);
    6770  void weapon();
    68  
     71
    6972};
    7073
Note: See TracChangeset for help on using the changeset viewer.