Changeset 4879 in orxonox.OLD for orxonox/branches/weaponSystem/src/world_entities/weapons/weapon.h
- Timestamp:
- Jul 17, 2005, 12:52:07 AM (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
orxonox/branches/weaponSystem/src/world_entities/weapons/weapon.h
r4878 r4879 39 39 40 40 WA_ACTION_COUNT = 7 //!< This must match the count of enumerations-members. 41 } WeaponAction s;41 } WeaponAction; 42 42 43 43 //! An enumerator defining the States of a Weapon … … 100 100 101 101 virtual void tick(float time); 102 virtual void weaponIdle();103 102 virtual void draw(); 103 104 private: 105 static WeaponAction charToAction(const char* action); 106 static WeaponState charToState(const char* state); 107 104 108 105 109 protected: … … 108 112 //////////// 109 113 WeaponState currentState; //!< The State the weapon is in. 114 WeaponAction requestAction; //!< An action to try to Engage after the currentState ends. 110 115 float stateTime; //!< how long the state has taken until now. 111 116 float times[WS_STATE_COUNT]; //!< Times to stay in the different States @see WeaponState.
Note: See TracChangeset
for help on using the changeset viewer.