Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Mar 19, 2009, 6:11:00 PM (16 years ago)
Author:
rgrieder
Message:

Moved global game clock to Core. Use getGameClock() for a const reference to an object that can tell you the time since the game was started or since the last capture() (which is usually once a frame).

File:
1 edited

Legend:

Unmodified
Added
Removed
  • code/branches/gui/src/core/Core.h

    r2800 r2807  
    6161    {
    6262        public:
    63             Core(int argc, char** argv);
     63            Core();
    6464            ~Core();
     65
     66            Clock* initialise(int argc, char** argv);
    6567            void setConfigValues();
    6668
    67             bool isLoaded() { return this->loaded_; }
    6869            void update(const Clock& time);
    6970
     
    7475            static const std::string& getLanguage();
    7576            static void  resetLanguage();
     77
     78            static const Clock& getGameClock() { return *getInstance().gameClock_; }
    7679
    7780            static void tsetMediaPath(const std::string& path)
     
    120123            TclThreadManager*     tclThreadManager_;
    121124
     125            Clock*                gameClock_;
     126
    122127            int softDebugLevel_;                            //!< The debug level
    123128            int softDebugLevelConsole_;                     //!< The debug level for the console
Note: See TracChangeset for help on using the changeset viewer.