Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Feb 2, 2006, 10:18:54 AM (18 years ago)
Author:
bensch
Message:

trunk: better functionality in the ammo-container functionality

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/world_entities/weapons/weapon_manager.cc

    r6931 r6972  
    297297}
    298298
     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 */
     304float WeaponManager::inclreaseAmmunition(const Weapon* weapon, float ammo)
     305{
     306  assert (weapon != NULL);
     307  return this->increaseAmmunition(weapon->getLeafClassID(), ammo);
     308
     309}
    299310
    300311
     
    503514}
    504515
     516CountPointer<AmmoContainer>& WeaponManager::getAmmoContainer(const Weapon* weapon)
     517{
     518  assert (weapon != NULL);
     519  return (this->getAmmoContainer(weapon->getLeafClassID()));
     520}
     521
    505522
    506523/**
Note: See TracChangeset for help on using the changeset viewer.