Changeset 5831 for code/branches/core5/src/modules
- Timestamp:
- Sep 28, 2009, 10:48:47 PM (16 years ago)
- Location:
- code/branches/core5/src/modules
- Files:
-
- 22 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/core5/src/modules/gamestates/GSRoot.cc
r5829 r5831 103 103 } 104 104 105 for (ObjectList<Timer Base>::iterator it = ObjectList<TimerBase>::begin(); it; )105 for (ObjectList<Timer>::iterator it = ObjectList<Timer>::begin(); it; ) 106 106 (it++)->tick(time); 107 107 -
code/branches/core5/src/modules/overlays/FadeoutText.cc
r5738 r5831 46 46 47 47 this->bFadingOut_ = false; 48 this->fadeouttimer_.setTimer(3.0f, false, this, createExecutor(createFunctor(&FadeoutText::fadeout)));48 this->fadeouttimer_.setTimer(3.0f, false, createExecutor(createFunctor(&FadeoutText::fadeout, this))); 49 49 this->fadeouttimer_.stopTimer(); 50 50 -
code/branches/core5/src/modules/overlays/FadeoutText.h
r5738 r5831 68 68 69 69 bool bFadingOut_; 70 Timer <FadeoutText>fadeouttimer_;70 Timer fadeouttimer_; 71 71 72 72 float initialAlpha_; -
code/branches/core5/src/modules/overlays/hud/ChatOverlay.cc
r5738 r5831 87 87 COUT(0) << "Chat: " << text << std::endl; 88 88 89 new Timer <ChatOverlay>(this->displayTime_, false, this, createExecutor(createFunctor(&ChatOverlay::dropMessage)), true);89 new Timer(this->displayTime_, false, createExecutor(createFunctor(&ChatOverlay::dropMessage, this)), true); 90 90 91 91 this->updateOverlayText(); -
code/branches/core5/src/modules/overlays/hud/UnderAttackHealthBar.cc
r5806 r5831 52 52 this->text_->setPickPoint(Vector2(0.5, 0)); 53 53 54 this->inittimer_.setTimer(0.0f, false, this, createExecutor(createFunctor(&UnderAttackHealthBar::init)));54 this->inittimer_.setTimer(0.0f, false, createExecutor(createFunctor(&UnderAttackHealthBar::init, this))); 55 55 } 56 56 -
code/branches/core5/src/modules/overlays/hud/UnderAttackHealthBar.h
r5738 r5831 62 62 PlayerInfo* owner_; 63 63 OverlayText* text_; 64 Timer <UnderAttackHealthBar>inittimer_;64 Timer inittimer_; 65 65 }; 66 66 } -
code/branches/core5/src/modules/pong/Pong.cc
r5806 r5831 52 52 this->setHUDTemplate("PongHUD"); 53 53 54 this->starttimer_.setTimer(1.0, false, this, createExecutor(createFunctor(&Pong::startBall)));54 this->starttimer_.setTimer(1.0, false, createExecutor(createFunctor(&Pong::startBall, this))); 55 55 this->starttimer_.stopTimer(); 56 56 -
code/branches/core5/src/modules/pong/Pong.h
r5738 r5831 62 62 PongBall* ball_; 63 63 PongBat* bat_[2]; 64 Timer <Pong>starttimer_;64 Timer starttimer_; 65 65 }; 66 66 } -
code/branches/core5/src/modules/pong/PongAI.cc
r5800 r5831 60 60 PongAI::~PongAI() 61 61 { 62 for (std::list<std::pair<Timer <PongAI>*, char> >::iterator it = this->reactionTimers_.begin(); it != this->reactionTimers_.end(); ++it)62 for (std::list<std::pair<Timer*, char> >::iterator it = this->reactionTimers_.begin(); it != this->reactionTimers_.end(); ++it) 63 63 (*it).first->destroy(); 64 64 } … … 231 231 232 232 // Add a new Timer 233 Timer <PongAI>* timer = new Timer<PongAI>(delay, false, this, createExecutor(createFunctor(&PongAI::delayedMove)));234 this->reactionTimers_.push_back(std::pair<Timer <PongAI>*, char>(timer, direction));233 Timer* timer = new Timer(delay, false, createExecutor(createFunctor(&PongAI::delayedMove, this))); 234 this->reactionTimers_.push_back(std::pair<Timer*, char>(timer, direction)); 235 235 } 236 236 else … … 246 246 247 247 // Destroy the timer and remove it from the list 248 Timer <PongAI>* timer = this->reactionTimers_.front().first;248 Timer* timer = this->reactionTimers_.front().first; 249 249 timer->destroy(); 250 250 -
code/branches/core5/src/modules/pong/PongAI.h
r5738 r5831 65 65 float strength_; 66 66 67 std::list<std::pair<Timer <PongAI>*, char> > reactionTimers_;67 std::list<std::pair<Timer*, char> > reactionTimers_; 68 68 char movement_; 69 69 char oldMove_; -
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.