Changeset 995 for code/branches/core2/src/orxonox/objects
- Timestamp:
- Apr 5, 2008, 6:46:43 PM (17 years ago)
- Location:
- code/branches/core2/src/orxonox/objects
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/core2/src/orxonox/objects/Explosion.cc
r790 r995 32 32 #include <OgreSceneNode.h> 33 33 34 #include "../core/CoreIncludes.h" 34 #include "core/CoreIncludes.h" 35 #include "core/Executor.h" 36 35 37 #include "util/Math.h" 36 38 #include "../Orxonox.h" … … 52 54 if (owner) 53 55 { 54 this->destroyTimer_.setTimer(this->lifetime_, false, this, &Explosion::destroyObject);56 this->destroyTimer_.setTimer(this->lifetime_, false, this, createExecutor(createFunctor(&Explosion::destroyObject))); 55 57 56 58 Vector3 position = owner->getNode()->getWorldPosition(); -
code/branches/core2/src/orxonox/objects/Projectile.cc
r957 r995 28 28 #include "OrxonoxStableHeaders.h" 29 29 30 #include "../core/CoreIncludes.h" 30 #include "core/CoreIncludes.h" 31 #include "core/Executor.h" 32 31 33 #include "SpaceShip.h" 32 34 #include "Explosion.h" … … 60 62 } 61 63 62 this->destroyTimer_.setTimer(this->lifetime_, false, this, &Projectile::destroyObject);64 this->destroyTimer_.setTimer(this->lifetime_, false, this, createExecutor(createFunctor(&Projectile::destroyObject))); 63 65 } 64 66 -
code/branches/core2/src/orxonox/objects/test2.cc
r871 r995 30 30 #include "test3.h" 31 31 #include "core/CoreIncludes.h" 32 #include "core/Executor.h" 32 33 33 34 namespace orxonox … … 43 44 this->usefullClass3_ = Class(Test3); 44 45 45 timer1.setTimer(1, true, this, &Test2::timerFunction1);46 timer2.setTimer(5, true, this, &Test2::timerFunction2);47 timer3.setTimer(10, false, this, &Test2::timerFunction3);46 timer1.setTimer(1, true, this, createExecutor(createFunctor(&Test2::timerFunction1))); 47 timer2.setTimer(5, true, this, createExecutor(createFunctor(&Test2::timerFunction2))); 48 timer3.setTimer(10, false, this, createExecutor(createFunctor(&Test2::timerFunction3))); 48 49 } 49 50
Note: See TracChangeset
for help on using the changeset viewer.