Changeset 2843 for code/branches/gui/src
- Timestamp:
- Mar 25, 2009, 4:34:40 PM (16 years ago)
- Location:
- code/branches/gui/src/orxonox
- Files:
-
- 2 added
- 6 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 -
code/branches/gui/src/orxonox/objects/worldentities/Backlight.h
r2710 r2843 32 32 #include "OrxonoxPrereqs.h" 33 33 #include "FadingBillboard.h" 34 #include " gamestates/GSRoot.h"34 #include "tools/TimeFactorListener.h" 35 35 36 36 namespace orxonox -
code/branches/gui/src/orxonox/tools/CMakeLists.txt
r2710 r2843 5 5 Shader.cc 6 6 TextureGenerator.cc 7 TimeFactorListener.cc 7 8 Timer.cc 8 9 WindowEventListener.cc -
code/branches/gui/src/orxonox/tools/ParticleInterface.h
r2662 r2843 37 37 #include "core/OrxonoxClass.h" 38 38 #include "util/Math.h" 39 #include " gamestates/GSRoot.h"39 #include "tools/TimeFactorListener.h" 40 40 41 41 #define getAllEmitters() \ -
code/branches/gui/src/orxonox/tools/Timer.h
r2662 r2843 64 64 #include "core/Executor.h" 65 65 #include "core/OrxonoxClass.h" 66 #include " gamestates/GSRoot.h"66 #include "tools/TimeFactorListener.h" 67 67 68 68 namespace orxonox
Note: See TracChangeset
for help on using the changeset viewer.