Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 1032 for code/trunk/src/asylum


Ignore:
Timestamp:
Apr 12, 2008, 4:08:29 PM (16 years ago)
Author:
rgrieder
Message:
  • singletonized GraphicsEngine —> Orxonox.h has to included only twice —> better compile performance —> Everything graphic related can now be accessed with GraphicsEngine::getSingleton()
  • asylumized Fighter (SpaceShip with weapon system integrated)
  • removed weapon system from build
Location:
code/trunk/src/asylum/orxonox/objects
Files:
2 moved

Legend:

Unmodified
Added
Removed
  • code/trunk/src/asylum/orxonox/objects/Fighter.cc

    r1029 r1032  
    3838#include "util/String2Number.h"
    3939#include "core/CoreIncludes.h"
    40 #include "Orxonox.h"
     40#include "GraphicsEngine.h"
    4141#include "core/InputManager.h"
    4242#include "particle/ParticleInterface.h"
     
    129129
    130130#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");
    132132        w->getParticleSystem()->setParameter("local_space","true");
    133133        w->newEmitter();
     
    148148#endif
    149149
    150         tt = new ParticleInterface(Orxonox::getSingleton()->getSceneManager(),"twinthruster" + this->getName(),"Orxonox/engineglow");
     150        tt = new ParticleInterface(GraphicsEngine::getSingleton().getSceneManager(),"twinthruster" + this->getName(),"Orxonox/engineglow");
    151151        tt->getParticleSystem()->setParameter("local_space","true");
    152152        tt->newEmitter();
     
    173173        mainWeapon_ = new BarrelGun();
    174174        mainWeapon_->setAmmoDump(ammoDump_);
    175         Orxonox::getSingleton()->getSceneManager()->getRootSceneNode()->removeChild(mainWeapon_->getNode());
     175        GraphicsEngine::getSingleton().getSceneManager()->getRootSceneNode()->removeChild(mainWeapon_->getNode());
    176176        getNode()->addChild(mainWeapon_->getNode());
    177177
     
    193193        if (xmlElem->Attribute("camera"))
    194194        {
    195             Ogre::Camera *cam = Orxonox::getSingleton()->getSceneManager()->createCamera("ShipCam");
     195            Ogre::Camera *cam = GraphicsEngine::getSingleton().getSceneManager()->createCamera("ShipCam");
    196196            Ogre::SceneNode *node = this->getNode()->createChildSceneNode("CamNode");
    197197/*
     
    208208
    209209            node->attachObject(cam);
    210             Orxonox::getSingleton()->getOgrePointer()->getRenderWindow()->addViewport(cam);
     210            GraphicsEngine::getSingleton().getRenderWindow()->addViewport(cam);
    211211        }
    212212    }
Note: See TracChangeset for help on using the changeset viewer.