Changeset 232 for code/branches/main_reto_vs05/src/run_manager.h
- Timestamp:
- Nov 21, 2007, 12:44:02 AM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/main_reto_vs05/src/run_manager.h
r194 r232 33 33 #include "OgreWindowEventUtilities.h" 34 34 #include "OgreTextureManager.h" 35 #include "OgreSingleton.h" 35 36 36 37 #include <OIS/OISPrereqs.h> … … 43 44 // let the class inherit from WindowEventListener in order for the RunMgr 44 45 // to act as the central point of all the calcuations in Orxonox 45 class RunManager : Ogre::WindowEventListener 46 class RunManager : public Ogre::WindowEventListener, 47 public Ogre::Singleton<RunManager> 46 48 { 47 49 public: 48 50 RunManager(OgreControl*); 49 51 50 virtual ~RunManager(); 52 virtual ~RunManager(); 53 //void initialise(OgreControl*); 51 54 52 virtual bool tick(unsigned long, Ogre::Real); 55 bool tick(unsigned long, Ogre::Real); 56 57 Ogre::SceneManager& getSceneManager(); 58 59 Ogre::SceneManager* getSceneManagerPtr(); 60 61 weapon::BulletManager* getBulletManagerPtr(); 62 63 int getAmmunitionID(const Ogre::String&); 64 65 int getNumberOfAmmos(); 66 67 static RunManager& getSingleton(void); 68 69 static RunManager* getSingletonPtr(void); 70 53 71 54 72 protected: 55 v irtual void createCamera(void);73 void createCamera(void); 56 74 57 v irtual void createViewports(void);75 void createViewports(void); 58 76 59 77 … … 61 79 62 80 //Adjust mouse clipping area 63 v irtual void windowResized(Ogre::RenderWindow*);81 void windowResized(Ogre::RenderWindow*); 64 82 65 83 //Unattach OIS before window shutdown (very important under Linux) 66 v irtual void windowClosed(Ogre::RenderWindow*);84 void windowClosed(Ogre::RenderWindow*); 67 85 68 86 69 87 /** INPUT PROCESSING **/ 70 virtualbool processUnbufferedKeyInput();88 bool processUnbufferedKeyInput(); 71 89 72 virtualbool processUnbufferedMouseInput();90 bool processUnbufferedMouseInput(); 73 91 74 92 75 93 /** OUTPUT **/ 76 94 77 v irtual void updateStats(void);95 void updateStats(void); 78 96 79 v irtual void showDebugOverlay(bool);97 void showDebugOverlay(bool); 80 98 81 99 protected:
Note: See TracChangeset
for help on using the changeset viewer.