- Timestamp:
- Dec 16, 2008, 6:01:13 PM (17 years ago)
- Location:
- code/branches/presentation
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/presentation
-
code/branches/presentation/src/orxonox/gamestates/GSRoot.h
r1891 r2485 47 47 { requestState("root"); } 48 48 49 // this has to be public because proteced triggers a bug in msvc 50 // when taking the function address. 51 void setTimeFactor(float factor); 52 void pause(); 53 float getTimeFactor() { return this->timeFactor_; } 54 49 55 private: 50 56 void enter(); … … 55 61 void setThreadAffinity(unsigned int limitToCPU); 56 62 63 float timeFactor_; //!< A factor that sets the gamespeed. 1 is normal. 64 bool bPaused_; 65 float timeFactorPauseBackup_; 57 66 Settings* settings_; 58 67 TclBind* tclBind_; 59 68 TclThreadManager* tclThreadManager_; 60 69 Shell* shell_; 70 LuaBind* luaBind_; 71 72 // console commands 73 ConsoleCommand* ccExit_; 74 ConsoleCommand* ccSelectGameState_; 75 ConsoleCommand* ccSetTimeFactor_; 76 ConsoleCommand* ccPause_; 77 }; 78 79 class _OrxonoxExport TimeFactorListener : virtual public OrxonoxClass 80 { 81 friend class GSRoot; 82 83 public: 84 TimeFactorListener(); 85 virtual ~TimeFactorListener() {} 86 87 protected: 88 virtual void changedTimeFactor(float factor_new, float factor_old) {} 89 inline float getTimeFactor() const 90 { return TimeFactorListener::timefactor_s; } 91 92 private: 93 static float timefactor_s; 61 94 }; 62 95 }
Note: See TracChangeset
for help on using the changeset viewer.