Changeset 1052 for code/trunk/src/orxonox/Orxonox.h
- Timestamp:
- Apr 14, 2008, 3:42:49 AM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/trunk/src/orxonox/Orxonox.h
r1039 r1052 41 41 static void destroySingleton(); 42 42 43 static inline void slomo(float factor) { Orxonox::getSingleton()->timefactor_ = factor; } 44 static inline void setTimeFactor(float factor = 1.0) { Orxonox::getSingleton()->timefactor_ = factor; } 45 static inline float getTimeFactor() { return Orxonox::getSingleton()->timefactor_; } 46 static inline void exit() { Orxonox::getSingleton()->abortRequest(); } 47 43 48 private: 44 49 // don't mess with singletons … … 75 80 HUD* orxonoxHUD_; 76 81 bool bAbort_; //!< aborts the render loop if true 82 float timefactor_; //!< A factor to change the gamespeed 77 83 78 84 // this is used to identify the mode (server/client/...) we're in
Note: See TracChangeset
for help on using the changeset viewer.