Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Mar 25, 2009, 4:34:40 PM (16 years ago)
Author:
rgrieder
Message:

Exported TimeFactorListener to separate file in the tools folder.

Location:
code/branches/gui/src/orxonox/gamestates
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • code/branches/gui/src/orxonox/gamestates/GSRoot.cc

    r2817 r2843  
    3535#include "core/CoreIncludes.h"
    3636#include "core/ConsoleCommand.h"
     37#include "tools/TimeFactorListener.h"
    3738#include "tools/Timer.h"
    3839#include "objects/Tickable.h"
     
    171172        }
    172173    }
    173 
    174     ////////////////////////
    175     // TimeFactorListener //
    176     ////////////////////////
    177     float TimeFactorListener::timefactor_s = 1.0f;
    178 
    179     TimeFactorListener::TimeFactorListener()
    180     {
    181         RegisterRootObject(TimeFactorListener);
    182     }
    183174}
  • code/branches/gui/src/orxonox/gamestates/GSRoot.h

    r2817 r2843  
    6868        ConsoleCommand*       ccPause_;
    6969    };
    70 
    71     class _OrxonoxExport TimeFactorListener : virtual public OrxonoxClass
    72     {
    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() const
    82                 { return TimeFactorListener::timefactor_s; }
    83 
    84         private:
    85             static float timefactor_s;
    86     };
    8770}
    8871
Note: See TracChangeset for help on using the changeset viewer.