- Timestamp:
- Dec 8, 2008, 2:36:47 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/weapon2/src/orxonox/objects/weaponSystem/WeaponPack.cc
r2347 r2354 59 59 } 60 60 61 void WeaponPack::attachWeapon(Weapon *weapon)62 {63 this->weapons_.push_back(weapon);64 }65 66 61 void WeaponPack::fire() 67 62 { … … 86 81 void WeaponPack::setFireMode(unsigned int firemode) 87 82 { 83 COUT(0) << "WeaponPack::setFireMode " << std::endl; 88 84 this->firemode_ = firemode; 89 85 } … … 97 93 { 98 94 weapon->setParentWeaponSystem(this->parentWeaponSystem_); 99 COUT(0) << "WeaponPack::addWeapon " << weapon ->getMunitionType() << std::endl;95 COUT(0) << "WeaponPack::addWeapon " << weapon << " munition " << weapon->getMunitionType() << std::endl; 100 96 this->weapons_.push_back(weapon); 101 97 } 102 98 103 Weapon * WeaponPack::getWeapon(unsigned int index)99 const Weapon * WeaponPack::getWeapon(unsigned int index) 104 100 { 105 101 return weapons_[index];
Note: See TracChangeset
for help on using the changeset viewer.