Changeset 289 for code/branches/main_reto/src/run_manager.h
- Timestamp:
- Nov 27, 2007, 11:54:13 PM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/main_reto/src/run_manager.h
r267 r289 32 32 #include "OgrePrerequisites.h" 33 33 #include "OgreWindowEventUtilities.h" 34 #include "OgreTextureManager.h" 35 #include "OgreSingleton.h" 34 //#include "OgreTextureManager.h" 36 35 37 36 #include <OIS/OISPrereqs.h> … … 44 43 // let the class inherit from WindowEventListener in order for the RunMgr 45 44 // to act as the central point of all the calcuations in Orxonox 46 class RunManager : public Ogre::WindowEventListener, 47 public Ogre::Singleton<RunManager> 45 class RunManager : public Ogre::WindowEventListener 48 46 { 49 47 public: 50 RunManager(OgreControl*);51 52 48 virtual ~RunManager(); 53 //void initialise(OgreControl*); 49 50 void initialise(OgreControl*); 54 51 55 52 bool tick(unsigned long, Ogre::Real); … … 65 62 int getNumberOfAmmos(); 66 63 64 static RunManager* createSingleton(); 65 66 static void destroySingleton(); 67 67 68 static RunManager& getSingleton(void); 68 69 … … 71 72 72 73 protected: 74 RunManager(); 75 73 76 void createCamera(void); 74 77 … … 93 96 /** OUTPUT **/ 94 97 95 void updateStats(void);96 97 98 void showDebugOverlay(bool); 98 99 … … 108 109 OrxonoxScene *backgroundScene_; 109 110 OrxonoxShip *playerShip_; 110 hud:: HUDOverlay*hud_;111 hud::TestOverlay *hud_; 111 112 112 113 // Bullet manager … … 121 122 // fields from the example framework 122 123 bool statsOn_; 123 std::string debugText_;124 124 125 125 unsigned int screenShotCounter_; 126 126 // just to stop toggles flipping too fast 127 127 Ogre::Real timeUntilNextToggle_; 128 //bool leftButtonDown_;129 Ogre::TextureFilterOptions filtering_;130 int aniso_;131 int sceneDetailIndex_;132 Ogre::Overlay* debugOverlay_;133 128 134 129 //OIS Input devices … … 138 133 OIS::JoyStick* joystick_; 139 134 135 // singleton pointer 136 static RunManager *singletonPtr_s; 137 140 138 }; 141 139
Note: See TracChangeset
for help on using the changeset viewer.