Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Dec 8, 2008, 2:36:47 PM (15 years ago)
Author:
polakma
Message:

made some changes to munition attaching

File:
1 edited

Legend:

Unmodified
Added
Removed
  • code/branches/weapon2/src/orxonox/objects/weaponSystem/WeaponPack.cc

    r2347 r2354  
    5959    }
    6060
    61     void WeaponPack::attachWeapon(Weapon *weapon)
    62     {
    63         this->weapons_.push_back(weapon);
    64     }
    65 
    6661    void WeaponPack::fire()
    6762    {
     
    8681    void WeaponPack::setFireMode(unsigned int firemode)
    8782    {
     83COUT(0) << "WeaponPack::setFireMode " << std::endl;
    8884        this->firemode_ = firemode;
    8985    }
     
    9793    {
    9894        weapon->setParentWeaponSystem(this->parentWeaponSystem_);
    99 COUT(0) << "WeaponPack::addWeapon " << weapon->getMunitionType() << std::endl;
     95COUT(0) << "WeaponPack::addWeapon " << weapon << "   munition " << weapon->getMunitionType() << std::endl;
    10096        this->weapons_.push_back(weapon);
    10197    }
    10298
    103     Weapon * WeaponPack::getWeapon(unsigned int index)
     99    const Weapon * WeaponPack::getWeapon(unsigned int index)
    104100    {
    105101        return weapons_[index];
Note: See TracChangeset for help on using the changeset viewer.