- Timestamp:
- Dec 9, 2008, 5:44:34 PM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/weapon2/src/orxonox/objects/weaponSystem/WeaponPack.cc
r2354 r2366 92 92 void WeaponPack::addWeapon(Weapon * weapon) 93 93 { 94 weapon->setParentWeaponSystem(this->parentWeaponSystem_); 95 COUT(0) << "WeaponPack::addWeapon " << weapon << " munition " << weapon->getMunitionType() << std::endl; 94 COUT(0) << "WeaponPack::addWeapon:" << weapon << " munition " << weapon->getMunitionType() << std::endl; 96 95 this->weapons_.push_back(weapon); 97 96 } … … 102 101 } 103 102 104 void WeaponPack::set WeaponSystemToAllWeapons(WeaponSystem * weaponSystem)103 void WeaponPack::setParentWeaponSystemToAllWeapons(WeaponSystem * weaponSystem) 105 104 { 106 105 for (int i=0; i < (int) this->weapons_.size(); i++) … … 110 109 111 110 } 111 112 void WeaponPack::attachNeededMunitionToAllWeapons() 113 { 114 for (int i=0; i < (int) this->weapons_.size(); i++) 115 { 116 this->weapons_[i]->attachNeededMunition(weapons_[i]->getMunitionType()); 117 } 118 119 } 120 112 121 }
Note: See TracChangeset
for help on using the changeset viewer.