- Timestamp:
- Aug 23, 2011, 12:58:21 AM (13 years ago)
- File:
-
- 1 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 }
Note: See TracChangeset
for help on using the changeset viewer.