Changeset 5831 for code/branches/core5/src/modules/weapons
- Timestamp:
- Sep 28, 2009, 10:48:47 PM (16 years ago)
- Location:
- code/branches/core5/src/modules/weapons
- Files:
-
- 12 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/core5/src/modules/weapons/MuzzleFlash.cc
r5791 r5831 42 42 this->setScale(0.1f); 43 43 44 this->delayTimer_.setTimer(0.1f, false, this, createExecutor(createFunctor(&MuzzleFlash::destroy)));44 this->delayTimer_.setTimer(0.1f, false, createExecutor(createFunctor(&MuzzleFlash::destroy, this))); 45 45 } 46 46 } -
code/branches/core5/src/modules/weapons/MuzzleFlash.h
r5791 r5831 44 44 45 45 private: 46 Timer <MuzzleFlash>delayTimer_;46 Timer delayTimer_; 47 47 }; 48 48 } -
code/branches/core5/src/modules/weapons/munitions/ReplenishingMunition.cc
r5738 r5831 44 44 // replenishIntervall_ and replenishMunitionAmount_ will be set in the constructor of the 45 45 // inheriting class, which comes after this constructor) 46 this->replenishingTimer_.setTimer(0.0f, false, this, createExecutor(createFunctor(&ReplenishingMunition::initializeTimer)));46 this->replenishingTimer_.setTimer(0.0f, false, createExecutor(createFunctor(&ReplenishingMunition::initializeTimer, this))); 47 47 } 48 48 … … 50 50 { 51 51 // Initialize the timer 52 this->replenishingTimer_.setTimer(this->replenishIntervall_, true, this, createExecutor(createFunctor(&ReplenishingMunition::replenish)));52 this->replenishingTimer_.setTimer(this->replenishIntervall_, true, createExecutor(createFunctor(&ReplenishingMunition::replenish, this))); 53 53 } 54 54 -
code/branches/core5/src/modules/weapons/munitions/ReplenishingMunition.h
r5738 r5831 51 51 void initializeTimer(); 52 52 53 Timer <ReplenishingMunition>replenishingTimer_;53 Timer replenishingTimer_; 54 54 }; 55 55 } -
code/branches/core5/src/modules/weapons/projectiles/LightningGunProjectile.cc
r5738 r5831 42 42 this->textureIndex_ = 1; 43 43 this->maxTextureIndex_ = 8; 44 this->textureTimer_.setTimer(0.01f, true, this, createExecutor(createFunctor(&LightningGunProjectile::changeTexture)));44 this->textureTimer_.setTimer(0.01f, true, createExecutor(createFunctor(&LightningGunProjectile::changeTexture, this))); 45 45 46 46 registerVariables(); -
code/branches/core5/src/modules/weapons/projectiles/LightningGunProjectile.h
r5738 r5831 50 50 unsigned int textureIndex_; 51 51 unsigned int maxTextureIndex_; 52 Timer <LightningGunProjectile>textureTimer_;52 Timer textureTimer_; 53 53 std::string materialBase_; 54 54 private: -
code/branches/core5/src/modules/weapons/projectiles/Projectile.cc
r5800 r5831 61 61 this->attachCollisionShape(shape); 62 62 63 this->destroyTimer_.setTimer(this->lifetime_, false, this, createExecutor(createFunctor(&Projectile::destroyObject)));63 this->destroyTimer_.setTimer(this->lifetime_, false, createExecutor(createFunctor(&Projectile::destroyObject, this))); 64 64 } 65 65 } -
code/branches/core5/src/modules/weapons/projectiles/Projectile.h
r5738 r5831 66 66 float damage_; 67 67 bool bDestroy_; 68 Timer <Projectile>destroyTimer_;68 Timer destroyTimer_; 69 69 }; 70 70 } -
code/branches/core5/src/modules/weapons/weaponmodes/EnergyDrink.cc
r5738 r5831 54 54 this->setMunitionName("FusionMunition"); 55 55 56 this->delayTimer_.setTimer(1.0f, false, this, createExecutor(createFunctor(&EnergyDrink::shot)));56 this->delayTimer_.setTimer(1.0f, false, createExecutor(createFunctor(&EnergyDrink::shot, this))); 57 57 this->delayTimer_.stopTimer(); 58 58 } -
code/branches/core5/src/modules/weapons/weaponmodes/EnergyDrink.h
r5738 r5831 59 59 float speed_; 60 60 float delay_; 61 Timer <EnergyDrink>delayTimer_;61 Timer delayTimer_; 62 62 }; 63 63 } -
code/branches/core5/src/modules/weapons/weaponmodes/HsW01.cc
r5738 r5831 54 54 this->setMunitionName("LaserMunition"); 55 55 56 this->delayTimer_.setTimer(1.0f, false, this, createExecutor(createFunctor(&HsW01::shot)));56 this->delayTimer_.setTimer(1.0f, false, createExecutor(createFunctor(&HsW01::shot, this))); 57 57 this->delayTimer_.stopTimer(); 58 58 } -
code/branches/core5/src/modules/weapons/weaponmodes/HsW01.h
r5738 r5831 57 57 float speed_; 58 58 float delay_; 59 Timer <HsW01>delayTimer_;59 Timer delayTimer_; 60 60 }; 61 61 }
Note: See TracChangeset
for help on using the changeset viewer.