Changeset 2843 for code/branches/gui/src/orxonox/gamestates
- Timestamp:
- Mar 25, 2009, 4:34:40 PM (16 years ago)
- Location:
- code/branches/gui/src/orxonox/gamestates
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/gui/src/orxonox/gamestates/GSRoot.cc
r2817 r2843 35 35 #include "core/CoreIncludes.h" 36 36 #include "core/ConsoleCommand.h" 37 #include "tools/TimeFactorListener.h" 37 38 #include "tools/Timer.h" 38 39 #include "objects/Tickable.h" … … 171 172 } 172 173 } 173 174 ////////////////////////175 // TimeFactorListener //176 ////////////////////////177 float TimeFactorListener::timefactor_s = 1.0f;178 179 TimeFactorListener::TimeFactorListener()180 {181 RegisterRootObject(TimeFactorListener);182 }183 174 } -
code/branches/gui/src/orxonox/gamestates/GSRoot.h
r2817 r2843 68 68 ConsoleCommand* ccPause_; 69 69 }; 70 71 class _OrxonoxExport TimeFactorListener : virtual public OrxonoxClass72 {73 friend class GSRoot;74 75 public:76 TimeFactorListener();77 virtual ~TimeFactorListener() {}78 79 protected:80 virtual void changedTimeFactor(float factor_new, float factor_old) {}81 inline float getTimeFactor() const82 { return TimeFactorListener::timefactor_s; }83 84 private:85 static float timefactor_s;86 };87 70 } 88 71
Note: See TracChangeset
for help on using the changeset viewer.