Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Apr 14, 2008, 3:42:49 AM (16 years ago)
Author:
landauf
Message:

merged core2 back to trunk
there might be some errors, wasn't able to test it yet due to some strange g++ and linker behaviour.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • code/trunk/src/orxonox/Orxonox.h

    r1039 r1052  
    4141      static void destroySingleton();
    4242
     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
    4348   private:
    4449      // don't mess with singletons
     
    7580      HUD*                  orxonoxHUD_;
    7681      bool                  bAbort_;        //!< aborts the render loop if true
     82      float                 timefactor_;    //!< A factor to change the gamespeed
    7783
    7884      // this is used to identify the mode (server/client/...) we're in
Note: See TracChangeset for help on using the changeset viewer.