Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Dec 9, 2008, 5:44:34 PM (15 years ago)
Author:
polakma
Message:

fixed some pointer bugs

File:
1 edited

Legend:

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

    r2354 r2366  
    4444    {
    4545        RegisterObject(LaserGun);
    46 
    47         //set weapon properties here
    48         //this->setLoadingTime(0.5);
    49 
    50 COUT(0) << "LaserGun::LaserGun" << std::endl;
    51         this->attachNeededMunition(this->getMunitionType());
    5246    }
    5347
     
    5852    void LaserGun::fire()
    5953    {
    60 COUT(0) << "LaserGun::fire" << std::endl;
     54COUT(0) << "LaserGun::fire, this=" << this << std::endl;
    6155        if ( this->getBulletReadyToShoot() && this->getMagazineReadyToShoot() )
    6256        {
     
    8175    }
    8276
    83     void LaserGun::XMLPort(Element& xmlelement, XMLPort::Mode mode)
    84     {
    85         SUPER(LaserGun, XMLPort, xmlelement, mode);
    86         XMLPortParam(LaserGun, "munitionType", setMunitionType, getMunitionType, xmlelement, mode);
    87     }
    88 
    89     void LaserGun::setMunitionType(std::string munitionType)
    90     {   
    91 COUT(0) << "LaserGun::setMunitionType (XMLPort) "<< munitionType << std::endl;
    92         this->munitionType_ = munitionType; }
    93 
    94     const std::string LaserGun::getMunitionType()
    95     {   return this->munitionType_;  }
    96 
    9777}
Note: See TracChangeset for help on using the changeset viewer.