Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Feb 1, 2006, 1:26:58 PM (18 years ago)
Author:
bensch
Message:

orxonox/trunk: implemented addWeapon

File:
1 edited

Legend:

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

    r6920 r6931  
    286286  return true;
    287287}
     288
     289/**
     290 * @brief increases the Energy of the WeaponContainer of type (projectileType)
     291 * @param projectileType the type of weapon to increase Energy from
     292 * @param ammo the ammo to increase
     293 */
     294float WeaponManager::increaseAmmunition(ClassID projectileType, float ammo)
     295{
     296  return this->getAmmoContainer(projectileType)->increaseEnergy(ammo);
     297}
     298
     299
    288300
    289301/**
Note: See TracChangeset for help on using the changeset viewer.