- Timestamp:
- Dec 8, 2008, 2:36:47 PM (16 years ago)
- Location:
- code/branches/weapon2/src/orxonox/objects/weaponSystem/weapons
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/weapon2/src/orxonox/objects/weaponSystem/weapons/LaserGun.cc
r2347 r2354 83 83 void LaserGun::XMLPort(Element& xmlelement, XMLPort::Mode mode) 84 84 { 85 85 SUPER(LaserGun, XMLPort, xmlelement, mode); 86 XMLPortParam(LaserGun, "munitionType", setMunitionType, getMunitionType, xmlelement, mode); 86 87 } 87 88 89 void LaserGun::setMunitionType(std::string munitionType) 90 { 91 COUT(0) << "LaserGun::setMunitionType (XMLPort) "<< munitionType << std::endl; 92 this->munitionType_ = munitionType; } 88 93 94 const std::string LaserGun::getMunitionType() 95 { return this->munitionType_; } 89 96 90 97 } -
code/branches/weapon2/src/orxonox/objects/weaponSystem/weapons/LaserGun.h
r2331 r2354 52 52 void fire(); 53 53 54 void setMunitionType(std::string munitionType); 55 const std::string getMunitionType(); 56 54 57 private: 55 58 float speed_;
Note: See TracChangeset
for help on using the changeset viewer.