Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Mar 19, 2009, 4:55:08 PM (16 years ago)
Author:
polakma
Message:

some enhancements, but not working…

File:
1 edited

Legend:

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

    r2778 r2804  
    6060            this->attachedWeaponPack_ = wPack;
    6161            int wPackWeapon = 0;    //WeaponCounter for Attaching
     62           
    6263            //should be possible to choose which slot to use
    63 
    6464            //attach every weapon of the weaponPack to a weaponSlot
    6565            for (  int i=0; i < wPack->getSize() ; i++  )
     
    8080                        if ( this->parentWeaponSystem_->getWeaponSlotPointer(k)->getAttachedWeapon() == 0 )
    8181                        {
    82 //COUT(0) << "WeaponSet::attachWeaponPack mode 2 k="<< k << std::endl;
    8382                            this->setWeaponSlots_.push_back( this->parentWeaponSystem_->getWeaponSlotPointer(k) );
    8483                            this->parentWeaponSystem_->getWeaponSlotPointer(k)->attachWeapon( wPack->getWeaponPointer(wPackWeapon) );
     
    9695    {
    9796        //fires all WeaponSlots available for this weaponSet attached from the WeaponPack
    98 //COUT(0) << "WeaponSet::fire from Pack: " << this->attachedWeaponPack_ << std::endl;
    9997        if (this->attachedWeaponPack_)
    10098            this->attachedWeaponPack_->fire();
Note: See TracChangeset for help on using the changeset viewer.