Changeset 8859 for code/trunk
- Timestamp:
- Aug 23, 2011, 12:58:21 AM (13 years ago)
- Location:
- code/trunk/src/modules/weapons/projectiles
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
code/trunk/src/modules/weapons/projectiles/SimpleRocket.cc
r8858 r8859 52 52 namespace orxonox 53 53 { 54 55 54 CreateFactory(SimpleRocket); 55 56 const float SimpleRocket::FUEL_PERCENTAGE = 0.8f; 56 57 57 58 SimpleRocket::SimpleRocket(BaseObject* creator) … … 95 96 collisionShape->setHeight(5); 96 97 this->attachCollisionShape(collisionShape); 97 98 98 99 this->destroyTimer_.setTimer(this->lifetime_, false, createExecutor(createFunctor(&BasicProjectile::destroyObject, this))); 99 100 } … … 115 116 { 116 117 SUPER(SimpleRocket, tick, dt); 117 118 118 119 if (GameMode::isMaster()) 119 120 { … … 167 168 { 168 169 BasicProjectile::setShooter(shooter); 169 170 170 171 this->player_ = this->getShooter()->getPlayer(); 171 172 } -
code/trunk/src/modules/weapons/projectiles/SimpleRocket.h
r8855 r8859 122 122 123 123 private: 124 static const float FUEL_PERCENTAGE = 0.8f; //!< Percentage of lifetime the rocket has fuel125 124 static const float FUEL_PERCENTAGE; //!< Percentage of lifetime the rocket has fuel 125 126 126 Vector3 localAngularVelocity_; //!< Variable to temporarily store accumulated steering command input. 127 127 bool fuel_; //!< Bool is true while the rocket "has fuel"
Note: See TracChangeset
for help on using the changeset viewer.