Changeset 1243 for code/branches/ogre/src/orxonox/objects
- Timestamp:
- May 7, 2008, 12:11:25 AM (17 years ago)
- Location:
- code/branches/ogre/src/orxonox/objects
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/ogre/src/orxonox/objects/Explosion.cc
r1056 r1243 47 47 Explosion::Explosion(WorldEntity* owner) 48 48 { 49 RegisterObject(Explosion);50 51 49 this->particle_ = 0; 52 50 this->lifetime_ = 0.4; 51 52 RegisterObject(Explosion); 53 53 54 54 if (owner) -
code/branches/ogre/src/orxonox/objects/SpaceShip.cc
r1219 r1243 64 64 SpaceShip::SpaceShip() 65 65 { 66 RegisterObject(SpaceShip);67 this->registerAllVariables();68 69 66 SpaceShip::instance_s = this; 70 71 this->setConfigValues();72 67 73 68 this->setMouseEventCallback_ = false; … … 139 134 // this->create(); 140 135 136 RegisterObject(SpaceShip); 137 this->registerAllVariables(); 138 this->setConfigValues(); 141 139 142 140 COUT(3) << "Info: SpaceShip was loaded" << std::endl; … … 166 164 void SpaceShip::init() 167 165 { 166 if (!setMouseEventCallback_) 167 { 168 InputManager::addMouseHandler(this, "SpaceShip"); 169 setMouseEventCallback_ = true; 170 } 171 168 172 // START CREATING THRUSTER 169 173 this->tt_ = new ParticleInterface(GraphicsEngine::getSingleton().getSceneManager(),"twinthruster" + this->getName(),"Orxonox/engineglow"); … … 428 432 void SpaceShip::tick(float dt) 429 433 { 430 if (!setMouseEventCallback_)431 {432 InputManager::addMouseHandler(this, "SpaceShip");433 setMouseEventCallback_ = true;434 }435 436 434 if (this->redNode_ && this->greenNode_) 437 435 { -
code/branches/ogre/src/orxonox/objects/WorldEntity.cc
r1209 r1243 47 47 WorldEntity::WorldEntity() 48 48 { 49 RegisterObject(WorldEntity);50 51 //create();52 53 49 this->bStatic_ = true; 54 50 this->velocity_ = Vector3(0, 0, 0); … … 57 53 this->rotationRate_ = 0; 58 54 this->momentum_ = 0; 55 56 RegisterObject(WorldEntity); 59 57 60 58 if (GraphicsEngine::getSingleton().getSceneManager())
Note: See TracChangeset
for help on using the changeset viewer.