Changeset 1032 for code/trunk/src/asylum/orxonox/objects
- Timestamp:
- Apr 12, 2008, 4:08:29 PM (17 years ago)
- Location:
- code/trunk/src/asylum/orxonox/objects
- Files:
-
- 2 moved
Legend:
- Unmodified
- Added
- Removed
-
code/trunk/src/asylum/orxonox/objects/Fighter.cc
r1029 r1032 38 38 #include "util/String2Number.h" 39 39 #include "core/CoreIncludes.h" 40 #include " Orxonox.h"40 #include "GraphicsEngine.h" 41 41 #include "core/InputManager.h" 42 42 #include "particle/ParticleInterface.h" … … 129 129 130 130 #if 0 131 w = new particle::ParticleInterface( Orxonox::getSingleton()->getSceneManager(),"schuss" + this->getName(),"Orxonox/schuss");131 w = new particle::ParticleInterface(GraphicsEngine::getSingleton().getSceneManager(),"schuss" + this->getName(),"Orxonox/schuss"); 132 132 w->getParticleSystem()->setParameter("local_space","true"); 133 133 w->newEmitter(); … … 148 148 #endif 149 149 150 tt = new ParticleInterface( Orxonox::getSingleton()->getSceneManager(),"twinthruster" + this->getName(),"Orxonox/engineglow");150 tt = new ParticleInterface(GraphicsEngine::getSingleton().getSceneManager(),"twinthruster" + this->getName(),"Orxonox/engineglow"); 151 151 tt->getParticleSystem()->setParameter("local_space","true"); 152 152 tt->newEmitter(); … … 173 173 mainWeapon_ = new BarrelGun(); 174 174 mainWeapon_->setAmmoDump(ammoDump_); 175 Orxonox::getSingleton()->getSceneManager()->getRootSceneNode()->removeChild(mainWeapon_->getNode());175 GraphicsEngine::getSingleton().getSceneManager()->getRootSceneNode()->removeChild(mainWeapon_->getNode()); 176 176 getNode()->addChild(mainWeapon_->getNode()); 177 177 … … 193 193 if (xmlElem->Attribute("camera")) 194 194 { 195 Ogre::Camera *cam = Orxonox::getSingleton()->getSceneManager()->createCamera("ShipCam");195 Ogre::Camera *cam = GraphicsEngine::getSingleton().getSceneManager()->createCamera("ShipCam"); 196 196 Ogre::SceneNode *node = this->getNode()->createChildSceneNode("CamNode"); 197 197 /* … … 208 208 209 209 node->attachObject(cam); 210 Orxonox::getSingleton()->getOgrePointer()->getRenderWindow()->addViewport(cam);210 GraphicsEngine::getSingleton().getRenderWindow()->addViewport(cam); 211 211 } 212 212 }
Note: See TracChangeset
for help on using the changeset viewer.