- Timestamp:
- Mar 19, 2009, 4:55:08 PM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/weaponsystem/src/orxonox/objects/weaponSystem/WeaponSet.cc
r2778 r2804 60 60 this->attachedWeaponPack_ = wPack; 61 61 int wPackWeapon = 0; //WeaponCounter for Attaching 62 62 63 //should be possible to choose which slot to use 63 64 64 //attach every weapon of the weaponPack to a weaponSlot 65 65 for ( int i=0; i < wPack->getSize() ; i++ ) … … 80 80 if ( this->parentWeaponSystem_->getWeaponSlotPointer(k)->getAttachedWeapon() == 0 ) 81 81 { 82 //COUT(0) << "WeaponSet::attachWeaponPack mode 2 k="<< k << std::endl;83 82 this->setWeaponSlots_.push_back( this->parentWeaponSystem_->getWeaponSlotPointer(k) ); 84 83 this->parentWeaponSystem_->getWeaponSlotPointer(k)->attachWeapon( wPack->getWeaponPointer(wPackWeapon) ); … … 96 95 { 97 96 //fires all WeaponSlots available for this weaponSet attached from the WeaponPack 98 //COUT(0) << "WeaponSet::fire from Pack: " << this->attachedWeaponPack_ << std::endl;99 97 if (this->attachedWeaponPack_) 100 98 this->attachedWeaponPack_->fire();
Note: See TracChangeset
for help on using the changeset viewer.