Changeset 929 for code/branches/network/src/orxonox/Orxonox.h
- Timestamp:
- Mar 26, 2008, 11:39:55 PM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/network/src/orxonox/Orxonox.h
r926 r929 36 36 void start(); 37 37 // not sure if this should be private 38 void die(/* some error code */);38 void abortImmediate(/* some error code */); 39 39 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 40 45 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_; }45 46 46 private: 47 private: 48 // don't mess with singletons 47 49 Orxonox(); 48 virtual ~Orxonox(); 50 Orxonox(Orxonox& instance); 51 Orxonox& operator=(const Orxonox& instance); 52 ~Orxonox(); 53 49 54 // init functions 50 55 void serverInit(std::string path); 51 56 void clientInit(std::string path); 52 57 void standaloneInit(std::string path); 58 53 59 // run functions 54 60 void serverStart(); … … 56 62 void standaloneStart(); 57 63 58 void createScene( void);64 void createScene(); 59 65 void setupInputSystem(); 60 66 void startRenderLoop(); … … 68 74 audio::AudioManager* auMan_; //!< audio manager 69 75 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 72 79 // TODO: make this a config-value by creating a config class for orxonox 73 80 float frameSmoothingTime_;
Note: See TracChangeset
for help on using the changeset viewer.