Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 6438 in orxonox.OLD for trunk/src/world_entities/weapons/weapon.h


Ignore:
Timestamp:
Jan 8, 2006, 1:51:55 PM (20 years ago)
Author:
bensch
Message:

trunk: widget war

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/world_entities/weapons/weapon.h

    r6435 r6438  
    2424class FastFactory;
    2525template<class T> class tFastFactory;
     26class GLGuiWidget;
    2627
    2728//! An enumerator defining Actions a Weapon can take
     
    148149    Animation3D* copyAnimation(WeaponState from, WeaponState to);
    149150
     151    GLGuiWidget* getEnergyWidget();
     152    GLGuiWidget* getMaxEnergyWidget();
     153
    150154    // FLOW
    151155    void tick(float dt); //!< this is a function that must be called by the weaponManager, or any other weaponHandler, all other functions are handled from within
     
    183187    bool fireW();
    184188    bool reloadW();
    185 
    186189    inline void enterState(WeaponState state);
    187190
     191    void updateWidgets();
    188192
    189193  private:
     
    200204    float                maxCharge;                        //!< The maximal energy to be loaded onto one projectile (this is only availible if chargeable is enabled)
    201205
     206    GLGuiBar*            energyWidget;
     207    GLGuiBar*            energyLoadedWidget;
     208
    202209    ////////////
    203210    // PHASES //
Note: See TracChangeset for help on using the changeset viewer.