Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Jul 17, 2005, 12:52:07 AM (19 years ago)
Author:
bensch
Message:

orxonox/branches/weaponSystem: some more definitions

File:
1 edited

Legend:

Unmodified
Added
Removed
  • orxonox/branches/weaponSystem/src/world_entities/weapons/weapon.h

    r4878 r4879  
    3939
    4040  WA_ACTION_COUNT  =    7     //!< This must match the count of enumerations-members.
    41 } WeaponActions;
     41} WeaponAction;
    4242
    4343//! An enumerator defining the States of a Weapon
     
    100100
    101101  virtual void tick(float time);
    102   virtual void weaponIdle();
    103102  virtual void draw();
     103
     104  private:
     105    static WeaponAction  charToAction(const char* action);
     106    static WeaponState   charToState(const char* state);
     107
    104108
    105109 protected:
     
    108112  ////////////
    109113  WeaponState          currentState;                     //!< The State the weapon is in.
     114  WeaponAction         requestAction;                    //!< An action to try to Engage after the currentState ends.
    110115  float                stateTime;                        //!< how long the state has taken until now.
    111116  float                times[WS_STATE_COUNT];            //!< Times to stay in the different States @see WeaponState.
Note: See TracChangeset for help on using the changeset viewer.