Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Dec 10, 2008, 10:08:37 PM (15 years ago)
Author:
landauf
Message:

moved setTimeFactor to GSRoot because tickables are currently ticked there

File:
1 edited

Legend:

Unmodified
Added
Removed
  • code/branches/objecthierarchy2/src/orxonox/gamestates/GSRoot.h

    r2344 r2400  
    4747        { requestState("root"); }
    4848
     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        float getTimeFactor() { return this->timeFactor_; }
     53
    4954    private:
    5055        void enter();
     
    5560        void setThreadAffinity(unsigned int limitToCPU);
    5661
     62        float                 timeFactor_;       //!< A factor that sets the gamespeed. 1 is normal.
    5763        Settings*             settings_;
    5864        TclBind*              tclBind_;
     
    6470        ConsoleCommand*       ccExit_;
    6571        ConsoleCommand*       ccSelectGameState_;
     72        ConsoleCommand*       ccSetTimeFactor_;
    6673    };
    6774}
Note: See TracChangeset for help on using the changeset viewer.