Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 6931 in orxonox.OLD for trunk/src/world_entities/weapons


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

orxonox/trunk: implemented addWeapon

Location:
trunk/src/world_entities/weapons
Files:
2 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/**
  • trunk/src/world_entities/weapons/weapon_manager.h

    r6803 r6931  
    8686    void changeWeaponConfig(int weaponConfig);
    8787
    88     float addAmmunition(ClassID projectileType, float ammo);
     88    float increaseAmmunition(ClassID projectileType, float ammo);
    8989
    9090
Note: See TracChangeset for help on using the changeset viewer.