- Timestamp:
- Mar 26, 2009, 2:56:39 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/weaponsystem/src/orxonox/objects/weaponSystem/WeaponSystem.cc
r2804 r2852 82 82 } 83 83 84 void WeaponSystem::setNewSharedMunition(std::string munitionType, Munition * munitionToAdd)85 {86 this->munitionSharedSet_[munitionType] = munitionToAdd;87 }88 84 89 85 //returns the Pointer to the munitionType, if this munitionType doesn't exist returns 0, see Weapon::attachNeededMunition 90 86 Munition * WeaponSystem::getMunitionType(std::string munitionType) 91 87 { 92 std::map<std::string, Munition *>::const_iterator it = this->munitionS haredSet_.find(munitionType);93 if (it != this->munitionS haredSet_.end())88 std::map<std::string, Munition *>::const_iterator it = this->munitionSet_.find(munitionType); 89 if (it != this->munitionSet_.end()) 94 90 return it->second; 95 91 else 96 92 return 0; 97 93 } 98 99 100 101 94 102 95
Note: See TracChangeset
for help on using the changeset viewer.