Changeset 6671 in orxonox.OLD for trunk/src/world_entities/weapons/weapon.h
- Timestamp:
- Jan 24, 2006, 2:52:25 PM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/world_entities/weapons/weapon.h
r6669 r6671 137 137 inline WeaponState getCurrentState() const { return this->currentState; }; 138 138 139 /** @param energyMax the maximum energy the Weapon can have @param energyLoadedMax the maximum energy in the weapon buffers*/140 inline void set MaximumEnergy(float energyMax, float energyLoadedMax) { this->energyMax = energyMax; this->energyLoadedMax = energyLoadedMax; };141 inline float get LoadedEnergyMax() const { return this->energyLoadedMax; };139 /** @param energyMax the maximum energy the Weapon can have */ 140 inline void setEnergyMax(float energyMax) { this->energyMax = energyMax; }; 141 inline float getEnergy() const { return this->energy; }; 142 142 inline float getEnergyMax() const { return this->energyMax; }; 143 143 inline void setAmmoContainer(const CountPointer<AmmoContainer>& ammoContainer) { this->ammoContainer = ammoContainer;} 144 inline float getEnergy() const { return this->energy; };145 inline float getLoadedEnergy() const { return this->energyLoaded; };146 144 147 145 void setActionSound(WeaponAction action, const char* soundFile); … … 153 151 154 152 GLGuiWidget* getEnergyWidget(); 155 GLGuiWidget* getLoadedEnergyWidget();156 153 157 154 // FLOW … … 201 198 202 199 // it is all about energy 203 float energy; //!< The energy stored in the weapons secondary buffers (reserve)204 float energy Loaded; //!< The energy stored in the weapons primary buffers (fire without reload)200 float energy; //!< The energy stored in the weapons buffers 201 float energyMax; //!< The maximal energy that can be stored in the secondary buffers (reserveMax) 205 202 CountPointer<AmmoContainer> ammoContainer; //!< Pointer to the AmmoContainer this weapon grabs Energy from. 206 float energyMax; //!< The maximal energy that can be stored in the secondary buffers (reserveMax)207 float energyLoadedMax; //!< The maximal energy that can be stored in the primary buffers208 203 //! @todo move this to projectile 209 204 float minCharge; //!< The minimal energy to be loaded onto one projectile if chargeable otherwise the power consumed by one projectile … … 211 206 212 207 GLGuiBar* energyWidget; 213 GLGuiBar* energyLoadedWidget;214 208 215 209 ////////////
Note: See TracChangeset
for help on using the changeset viewer.