- Timestamp:
- Dec 9, 2008, 5:44:34 PM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/weapon2/src/orxonox/objects/weaponSystem/weapons/LaserGun.cc
r2354 r2366 44 44 { 45 45 RegisterObject(LaserGun); 46 47 //set weapon properties here48 //this->setLoadingTime(0.5);49 50 COUT(0) << "LaserGun::LaserGun" << std::endl;51 this->attachNeededMunition(this->getMunitionType());52 46 } 53 47 … … 58 52 void LaserGun::fire() 59 53 { 60 COUT(0) << "LaserGun::fire "<< std::endl;54 COUT(0) << "LaserGun::fire, this=" << this << std::endl; 61 55 if ( this->getBulletReadyToShoot() && this->getMagazineReadyToShoot() ) 62 56 { … … 81 75 } 82 76 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 97 77 }
Note: See TracChangeset
for help on using the changeset viewer.