Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Mar 26, 2009, 2:56:39 PM (15 years ago)
Author:
polakma
Message:

added unlimited munition, reverted shared munition and fixed some bugs

File:
1 edited

Legend:

Unmodified
Added
Removed
  • code/branches/weaponsystem/src/orxonox/objects/weaponSystem/WeaponSystem.cc

    r2804 r2852  
    8282    }
    8383
    84     void WeaponSystem::setNewSharedMunition(std::string munitionType, Munition * munitionToAdd)
    85     {
    86         this->munitionSharedSet_[munitionType] = munitionToAdd;
    87     }
    8884
    8985    //returns the Pointer to the munitionType, if this munitionType doesn't exist returns 0, see Weapon::attachNeededMunition
    9086    Munition * WeaponSystem::getMunitionType(std::string munitionType)
    9187    {
    92         std::map<std::string, Munition *>::const_iterator it = this->munitionSharedSet_.find(munitionType);
    93         if (it != this->munitionSharedSet_.end())
     88        std::map<std::string, Munition *>::const_iterator it = this->munitionSet_.find(munitionType);
     89        if (it != this->munitionSet_.end())
    9490            return it->second;
    9591        else
    9692            return 0;
    9793    }
    98 
    99 
    100 
    10194
    10295
Note: See TracChangeset for help on using the changeset viewer.