Changeset 288 for code/branches/main_reto_vs05/src/run_manager.h
- Timestamp:
- Nov 27, 2007, 11:49:42 PM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/main_reto_vs05/src/run_manager.h
r232 r288 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 99 100 protected: 101 // directly Ogre related fields 100 102 Ogre::SceneManager *sceneMgr_; 101 103 Ogre::RenderWindow *window_; 102 104 Ogre::Camera *camera_; 105 106 107 // self made orxonox fields 103 108 OgreControl *ogre_; 104 109 OrxonoxScene *backgroundScene_; 105 110 OrxonoxShip *playerShip_; 111 hud::TestOverlay *hud_; 106 112 113 // Bullet manager 114 weapon::BulletManager *bulletManager_; 115 116 const Ogre::Real mouseSensitivity_; 117 118 // previously elapsed render time 119 unsigned long totalTime_; 120 121 122 // fields from the example framework 107 123 bool statsOn_; 108 std::string debugText_;109 124 110 125 unsigned int screenShotCounter_; 111 126 // just to stop toggles flipping too fast 112 127 Ogre::Real timeUntilNextToggle_; 113 //bool leftButtonDown_;114 Ogre::TextureFilterOptions filtering_;115 int aniso_;116 117 int sceneDetailIndex_;118 Ogre::Overlay* debugOverlay_;119 128 120 129 //OIS Input devices … … 124 133 OIS::JoyStick* joystick_; 125 134 126 const Ogre::Real mouseSensitivity_; 127 128 // Bullet array 129 /*Bullet **bullets_; 130 int bulletsSize_; 131 int bulletsIndex_;*/ 132 weapon::BulletManager *bulletManager_; 133 134 // previously elapsed render time 135 unsigned long totalTime_; 135 // singleton pointer 136 static RunManager *singletonPtr_s; 136 137 137 138 };
Note: See TracChangeset
for help on using the changeset viewer.