Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Mar 26, 2008, 11:39:55 PM (16 years ago)
Author:
rgrieder
Message:
  • removed getRoot() from GaphicsEngine —> added getRenderWindow() —> added 3 function to control render loop
  • rearranged the sequence of methods in Orxonox.cc to make it a little bit more logical
  • added deletion code in Orxonox.cc destructor
  • fixed a bug in AudioManger destructor
  • fixed a bug in InputHandler destroy()
File:
1 edited

Legend:

Unmodified
Added
Removed
  • code/branches/network/src/orxonox/Orxonox.h

    r926 r929  
    3636      void start();
    3737      // not sure if this should be private
    38       void die(/* some error code */);
     38      void abortImmediate(/* some error code */);
    3939      void abortRequest();
     40      inline Ogre::SceneManager*  getSceneManager()        { return ogre_->getSceneManager(); };
     41      inline GraphicsEngine*      getOgrePointer()         { return ogre_; };
     42      inline audio::AudioManager* getAudioManagerPointer() { return auMan_; };
     43      inline BulletManager*       getBulletMgr()           { return this->bulletMgr_; }
     44
    4045      static Orxonox* getSingleton();
    41       inline Ogre::SceneManager* getSceneManager()         { return ogre_->getSceneManager(); };
    42       inline GraphicsEngine* getOgrePointer()              { return ogre_; };
    43       inline audio::AudioManager* getAudioManagerPointer() { return auMan_; };
    44       inline BulletManager* getBulletMgr()                 { return this->bulletMgr_; }
    4546
    46     private:
     47   private:
     48      // don't mess with singletons
    4749      Orxonox();
    48       virtual ~Orxonox();
     50      Orxonox(Orxonox& instance);
     51      Orxonox& operator=(const Orxonox& instance);
     52      ~Orxonox();
     53
    4954      // init functions
    5055      void serverInit(std::string path);
    5156      void clientInit(std::string path);
    5257      void standaloneInit(std::string path);
     58
    5359      // run functions
    5460      void serverStart();
     
    5662      void standaloneStart();
    5763
    58       void createScene(void);
     64      void createScene();
    5965      void setupInputSystem();
    6066      void startRenderLoop();
     
    6874      audio::AudioManager*  auMan_;         //!< audio manager
    6975      BulletManager*        bulletMgr_;     //!< Keeps track of the thrown bullets
    70       InputHandler*         inputHandler_;
    71       Ogre::Root*           root_;
     76      InputHandler*         inputHandler_;  //!< Handles input with key bindings
     77      Ogre::Root*           root_;          //!< Holy grail of Ogre
     78      Ogre::Timer*          timer_;         //!< Main loop timer
    7279      // TODO: make this a config-value by creating a config class for orxonox
    7380      float                 frameSmoothingTime_;
Note: See TracChangeset for help on using the changeset viewer.