- Timestamp:
- Nov 12, 2008, 4:45:50 PM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/weapon2/src/orxonox/objects/weaponSystem/weapons/LaserGun.cc
r2186 r2203 44 44 45 45 //set weapon properties here 46 this->loadingTime_ = 0.5; 46 this->setLoadingTime(0.5); 47 48 //Hack --> will be loaded by XML 49 this->attachNeededMunition("LaserGunMunition"); 47 50 } 48 51 … … 51 54 } 52 55 53 LaserGun::fire()56 void LaserGun::fire() 54 57 { 55 if { this->weaponReadyToShoot_ }58 if ( this->getWeaponReadyToShoot() ) 56 59 { 57 this->weaponReadyToShoot_ = false; 60 this->setWeaponReadyToShoot(false); 61 62 Weapon::timer(); 63 58 64 //take munition 59 //this->pointerToMunition_->65 this->getAttachedMunition()->decrementBullets(); 60 66 61 this->reloadTimer_.setTimer( loadingTime_ , false , this , &this->reloaded ); 62 63 BillboardProjectile* projectile = new ParticleProjectile(this); 64 projectile->setColour(this->getProjectileColour()); 67 //create projectile 68 //BillboardProjectile* projectile = new ParticleProjectile(this); 69 //projectile->setColour(this->getProjectileColour()); 65 70 } 66 71 else 67 72 { 68 //actions, when weapon is not reloaded 73 //actions, when weapon is not reloaded if there are some 69 74 } 70 75 } … … 75 80 } 76 81 82 83 77 84 }
Note: See TracChangeset
for help on using the changeset viewer.