Changeset 1052 for code/trunk/src/orxonox/objects/Projectile.cc
- Timestamp:
- Apr 14, 2008, 3:42:49 AM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/trunk/src/orxonox/objects/Projectile.cc
r1039 r1052 29 29 #include "Projectile.h" 30 30 31 #include "../core/CoreIncludes.h" 31 #include "core/CoreIncludes.h" 32 #include "core/Executor.h" 33 #include "core/ConfigValueIncludes.h" 34 32 35 #include "SpaceShip.h" 33 36 #include "Explosion.h" … … 59 62 } 60 63 61 this->destroyTimer_.setTimer(this->lifetime_, false, this, &Projectile::destroyObject);64 this->destroyTimer_.setTimer(this->lifetime_, false, this, createExecutor(createFunctor(&Projectile::destroyObject))); 62 65 } 63 66 … … 70 73 SetConfigValue(lifetime_, 10.0).description("The time in seconds a projectile stays alive"); 71 74 SetConfigValue(speed_, 2000.0).description("The speed of a projectile in units per second"); 75 76 this->setVelocity(Vector3(1, 0, 0) * this->speed_); 72 77 } 73 78
Note: See TracChangeset
for help on using the changeset viewer.