Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Nov 27, 2007, 11:54:13 PM (17 years ago)
Author:
rgrieder
Message:
  • updated the source files and CMLs
  • adjusted resources.cfg for the new hud overlay
File:
1 edited

Legend:

Unmodified
Added
Removed
  • code/branches/main_reto/src/run_manager.h

    r267 r289  
    3232#include "OgrePrerequisites.h"
    3333#include "OgreWindowEventUtilities.h"
    34 #include "OgreTextureManager.h"
    35 #include "OgreSingleton.h"
     34//#include "OgreTextureManager.h"
    3635
    3736#include <OIS/OISPrereqs.h>
     
    4443  // let the class inherit from WindowEventListener in order for the RunMgr
    4544  // 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
    4846  {
    4947  public:
    50     RunManager(OgreControl*);
    51 
    5248    virtual ~RunManager();
    53     //void initialise(OgreControl*);
     49   
     50    void initialise(OgreControl*);
    5451
    5552    bool tick(unsigned long, Ogre::Real);
     
    6562    int getNumberOfAmmos();
    6663
     64    static RunManager* createSingleton();
     65
     66    static void destroySingleton();
     67
    6768    static RunManager& getSingleton(void);
    6869
     
    7172
    7273  protected:
     74    RunManager();
     75
    7376          void createCamera(void);
    7477
     
    9396          /** OUTPUT **/
    9497
    95           void updateStats(void);
    96 
    9798          void showDebugOverlay(bool);
    9899
     
    108109          OrxonoxScene *backgroundScene_;
    109110          OrxonoxShip  *playerShip_;
    110     hud::HUDOverlay  *hud_;
     111    hud::TestOverlay *hud_;
    111112
    112113    // Bullet manager
     
    121122    // fields from the example framework
    122123          bool statsOn_;
    123           std::string debugText_;
    124124
    125125          unsigned int screenShotCounter_;
    126126          // just to stop toggles flipping too fast
    127127          Ogre::Real timeUntilNextToggle_;
    128           //bool leftButtonDown_;
    129           Ogre::TextureFilterOptions filtering_;
    130           int aniso_;
    131           int sceneDetailIndex_;
    132           Ogre::Overlay* debugOverlay_;
    133128
    134129          //OIS Input devices
     
    138133          OIS::JoyStick* joystick_;
    139134
     135    // singleton pointer
     136    static RunManager *singletonPtr_s;
     137
    140138  };
    141139
Note: See TracChangeset for help on using the changeset viewer.