Changeset 4877 in orxonox.OLD for orxonox/branches/weaponSystem/src/world_entities/player.h
- Timestamp:
- Jul 16, 2005, 10:38:04 PM (20 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
orxonox/branches/weaponSystem/src/world_entities/player.h
r4836 r4877 1 1 /*! 2 \file player.h3 *Implements a basic controllable WorldEntity2 * @file player.h 3 * Implements a basic controllable WorldEntity 4 4 */ 5 5 … … 15 15 class WeaponManager; 16 16 class Vector; 17 class World;18 17 class Event; 19 class Crosshair;20 18 21 19 //! Basic controllable WorldEntity 20 /** 21 * this is the debug player - actualy we would have to make a new 22 class derivated from Player for each player. for now, we just use 23 the player.cc for debug also 24 */ 22 25 class Player : public WorldEntity, public PhysicsInterface, public EventListener 23 26 { … … 43 46 virtual void draw(); 44 47 45 virtual void command(Command* cmd);46 47 48 virtual void process(const Event &event); 48 49 … … 50 51 private: 51 52 void move(float time); 52 void weapon ();53 void weaponAction(); 53 54 54 55 55 56 private: 56 bool bUp;//!< up button pressed.57 bool bDown;//!< down button pressed.58 bool bLeft;//!< left button pressed.59 bool bRight;//!< right button pressed.60 bool bAscend;//!< ascend button pressed.61 bool bDescend;//!< descend button presses.62 bool bFire;//!< fire button pressed.63 bool bWeaponChange;//!< weapon change button pressed57 bool bUp; //!< up button pressed. 58 bool bDown; //!< down button pressed. 59 bool bLeft; //!< left button pressed. 60 bool bRight; //!< right button pressed. 61 bool bAscend; //!< ascend button pressed. 62 bool bDescend; //!< descend button presses. 63 bool bFire; //!< fire button pressed. 64 bool bWeaponChange; //!< weapon change button pressed 64 65 65 tList<Weapon>* weapons;//!< a list of weapon 66 Weapon* activeWeapon; //!< the weapon that is currenty activated 67 Weapon* activeWeaponL; //temporary -- FIX THIS 68 WeaponManager* weaponMan; //!< the weapon manager: managing a list of weapon to wepaon-slot mapping 66 WeaponManager* weaponMan; //!< the weapon manager: managing a list of weapon to wepaon-slot mapping 69 67 70 World* myWorld; //!< reference to the world object 71 72 Vector* velocity; //!< the velocity of the player. 73 float travelSpeed; //!< the current speed of the player (to make soft movement) 74 float acceleration; //!< the acceleration of the player. 75 76 Crosshair* crosshair; //!< the crosshair of the player 68 Vector* velocity; //!< the velocity of the player. 69 float travelSpeed; //!< the current speed of the player (to make soft movement) 70 float acceleration; //!< the acceleration of the player. 77 71 }; 78 72
Note: See TracChangeset
for help on using the changeset viewer.