Changeset 6669 in orxonox.OLD for trunk/src/world_entities/weapons/weapon.h
- Timestamp:
- Jan 24, 2006, 2:26:15 PM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/world_entities/weapons/weapon.h
r6512 r6669 16 16 17 17 #include "world_entity.h" 18 #include "count_pointer.h" 19 #include "ammo_container.h" 18 20 19 21 // FORWARD DECLARATION … … 105 107 inline void setCapability(long capabilities) { this->capability = capabilities; }; 106 108 /** @returns the Capabilities of this Weapon */ 107 inline long getCapability() { return this->capability; };109 inline long getCapability() const { return this->capability; }; 108 110 void setProjectileType(ClassID projectile); 109 111 void setProjectileType(const char* projectile); … … 139 141 inline float getLoadedEnergyMax() const { return this->energyLoadedMax; }; 140 142 inline float getEnergyMax() const { return this->energyMax; }; 143 inline void setAmmoContainer(const CountPointer<AmmoContainer>& ammoContainer) { this->ammoContainer = ammoContainer;} 141 144 inline float getEnergy() const { return this->energy; }; 142 145 inline float getLoadedEnergy() const { return this->energyLoaded; }; … … 200 203 float energy; //!< The energy stored in the weapons secondary buffers (reserve) 201 204 float energyLoaded; //!< The energy stored in the weapons primary buffers (fire without reload) 205 CountPointer<AmmoContainer> ammoContainer; //!< Pointer to the AmmoContainer this weapon grabs Energy from. 202 206 float energyMax; //!< The maximal energy that can be stored in the secondary buffers (reserveMax) 203 207 float energyLoadedMax; //!< The maximal energy that can be stored in the primary buffers
Note: See TracChangeset
for help on using the changeset viewer.