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/weapons/LaserGun.cc

    r2347 r2354  
    8383    void LaserGun::XMLPort(Element& xmlelement, XMLPort::Mode mode)
    8484    {
    85 
     85        SUPER(LaserGun, XMLPort, xmlelement, mode);
     86        XMLPortParam(LaserGun, "munitionType", setMunitionType, getMunitionType, xmlelement, mode);
    8687    }
    8788
     89    void LaserGun::setMunitionType(std::string munitionType)
     90    {   
     91COUT(0) << "LaserGun::setMunitionType (XMLPort) "<< munitionType << std::endl;
     92        this->munitionType_ = munitionType; }
    8893
     94    const std::string LaserGun::getMunitionType()
     95    {   return this->munitionType_;  }
    8996
    9097}
Note: See TracChangeset for help on using the changeset viewer.