- Timestamp:
- Feb 2, 2006, 10:18:54 AM (19 years ago)
- Location:
- trunk/src/world_entities/weapons
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/world_entities/weapons/weapon_manager.cc
r6931 r6972 297 297 } 298 298 299 /** 300 * @brief does the same as the funtion inclreaseAmmunition, added four your convenience 301 * @param weapon, the Weapon to read the ammo-info about. 302 * @param ammo how much ammo to add. 303 */ 304 float WeaponManager::inclreaseAmmunition(const Weapon* weapon, float ammo) 305 { 306 assert (weapon != NULL); 307 return this->increaseAmmunition(weapon->getLeafClassID(), ammo); 308 309 } 299 310 300 311 … … 503 514 } 504 515 516 CountPointer<AmmoContainer>& WeaponManager::getAmmoContainer(const Weapon* weapon) 517 { 518 assert (weapon != NULL); 519 return (this->getAmmoContainer(weapon->getLeafClassID())); 520 } 521 505 522 506 523 /** -
trunk/src/world_entities/weapons/weapon_manager.h
r6931 r6972 87 87 88 88 float increaseAmmunition(ClassID projectileType, float ammo); 89 89 float inclreaseAmmunition(const Weapon* weapon, float ammo); 90 90 91 91 /** @returns a fixed target namely the Crosshair's 3D position */ … … 104 104 int getNextFreeSlot(int configID, long capability = WTYPE_ALL); 105 105 CountPointer<AmmoContainer>& getAmmoContainer(ClassID projectileType); 106 CountPointer<AmmoContainer>& getAmmoContainer(const Weapon* weapon); 106 107 107 108 private:
Note: See TracChangeset
for help on using the changeset viewer.