Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

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


Ignore:
Timestamp:
Dec 26, 2005, 2:27:13 PM (18 years ago)
Author:
bensch
Message:

orxonox/trunk: cool bars for the rocket-louncher

File:
1 edited

Legend:

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

    r6054 r6306  
    136136    /** @param energyMax the maximum energy the Weapon can have @param energyLoadedMax the maximum energy in the weapon buffers */
    137137    inline void setMaximumEnergy(float energyMax, float energyLoadedMax) { this->energyMax = energyMax; this->energyLoadedMax = energyLoadedMax; };
     138    inline float getLoadedEnergyMax() const { return this->energyLoadedMax; };
     139    inline float getEnergyMax() const { return this->energyMax; };
     140    inline float getEnergy() const { return this->energy; };
     141    inline float getLoadedEnergy() const { return this->energyLoaded; };
    138142
    139143    void setActionSound(WeaponAction action, const char* soundFile);
Note: See TracChangeset for help on using the changeset viewer.