- Timestamp:
- May 23, 2011, 2:26:25 PM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/gameimmersion/src/modules/weapons/projectiles/Rocket.cc
r7848 r8533 43 43 #include "Scene.h" 44 44 45 #include "BasicProjectile.h" 46 45 47 namespace orxonox 46 48 { … … 52 54 Constructor. Registers the object and initializes some default values. 53 55 */ 54 Rocket::Rocket(BaseObject* creator) : ControllableEntity(creator) 56 Rocket::Rocket(BaseObject* creator) : ControllableEntity(creator), BasicProjectile() 55 57 { 56 58 RegisterObject(Rocket);// - register the Rocket class to the core 57 59 58 60 this->localAngularVelocity_ = 0; 59 this->bDestroy_ = false;61 // this->bDestroy_ = false; 60 62 this->lifetime_ = 100; 61 63 … … 175 177 if( GameMode::isMaster() ) 176 178 { 177 if( this-> bDestroy_)179 if( this->getBDestroy() ) 178 180 this->destroy(); 179 181 … … 183 185 bool Rocket::collidesAgainst(WorldEntity* otherObject, btManifoldPoint& contactPoint) 184 186 { 185 if (!this->bDestroy_ && GameMode::isMaster()) 187 return BasicProjectile::basicCollidesAgainst(otherObject,contactPoint,this->owner_,this); 188 189 /* * / if (!this->bDestroy_ && GameMode::isMaster()) 186 190 { 187 191 if (otherObject == this->owner_) … … 216 220 // this->destroy(); 217 221 } 218 return false;222 / * */ return false; 219 223 } 220 224
Note: See TracChangeset
for help on using the changeset viewer.