Changeset 2347 for code/branches/weapon2
- Timestamp:
- Dec 5, 2008, 11:44:37 AM (16 years ago)
- Location:
- code/branches/weapon2/src/orxonox/objects/weaponSystem
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/weapon2/src/orxonox/objects/weaponSystem/Weapon.cc
r2337 r2347 107 107 108 108 void Weapon::setMunitionType(std::string munitionType) 109 { this->munitionType_ = munitionType; } 109 { 110 COUT(0) << "Weapon::setMunitionType (XMLPort) "<< munitionType << std::endl; 111 this->munitionType_ = munitionType; } 110 112 111 113 std::string Weapon::getMunitionType() -
code/branches/weapon2/src/orxonox/objects/weaponSystem/WeaponPack.cc
r2337 r2347 97 97 { 98 98 weapon->setParentWeaponSystem(this->parentWeaponSystem_); 99 COUT(0) << "WeaponPack::addWeapon " << weapon->getMunitionType() << std::endl; 99 100 this->weapons_.push_back(weapon); 100 101 } 101 102 102 103 Weapon * WeaponPack::getWeapon(unsigned int index) 103 104 { … … 111 112 this->weapons_[i]->setParentWeaponSystem(weaponSystem); 112 113 } 113 114 114 115 } 115 116 } -
code/branches/weapon2/src/orxonox/objects/weaponSystem/weapons/LaserGun.cc
r2337 r2347 48 48 //this->setLoadingTime(0.5); 49 49 50 //how could it be loaded by XML 50 COUT(0) << "LaserGun::LaserGun" << std::endl; 51 51 this->attachNeededMunition(this->getMunitionType()); 52 52 } … … 61 61 if ( this->getBulletReadyToShoot() && this->getMagazineReadyToShoot() ) 62 62 { 63 COUT(0) << "LaserGun::fire - ready to shoot" << std::endl; 63 COUT(0) << "LaserGun::fire - ready to shoot" << std::endl; 64 64 //take munition 65 this->setBulletReadyToShoot(false); 66 Weapon::bulletTimer(); 65 67 this->getAttachedMunition(this->munitionType_)->removeBullets(1,this); 66 Weapon::bulletTimer();67 this->setBulletReadyToShoot(false);68 68 69 69 //create projectile
Note: See TracChangeset
for help on using the changeset viewer.