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/Weapon.cc

    r2347 r2354  
    111111this->munitionType_ = munitionType; }
    112112
    113     std::string Weapon::getMunitionType()
     113    const std::string Weapon::getMunitionType()
    114114    {   return this->munitionType_;  }
    115115
    116116    Munition * Weapon::getAttachedMunition(std::string munitionType)
    117117    {   
    118 COUT(0) << "Weapon::getAttachedMunition, parentWeaponSystem_="<< this->parentWeaponSystem_ << std::endl;   
    119         this->parentWeaponSystem_->getMunitionType(munitionType);
     118COUT(0) << "Weapon::getAttachedMunition, parentWeaponSystem_="<< this->parentWeaponSystem_ << std::endl;
     119        this->munition_ = this->parentWeaponSystem_->getMunitionType(munitionType);
    120120COUT(0) << "Weapon::getAttachedMunition, munition_="<< this->munition_ << std::endl;
    121121return this->munition_; }
Note: See TracChangeset for help on using the changeset viewer.