Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Aug 28, 2008, 8:30:25 PM (16 years ago)
Author:
rgrieder
Message:
  • Wrote Clock() class: It starts an internal clock when GSRoot starts and gets handed to all GameState ticks as reference. You can then either query the ticked time or the real time (for instance for statistical measurements)
  • general clean up in all the game states
File:
1 edited

Legend:

Unmodified
Added
Removed
  • code/branches/gui/src/orxonox/gamestates/GSLevel.h

    r1672 r1674  
    4444        // when taking the function address.
    4545        void setTimeFactor(float factor);
    46         float getTimeFactor() { return this->timefactor_; }
     46        float getTimeFactor() { return this->timeFactor_; }
    4747
    4848    protected:
    4949        virtual void enter();
    5050        virtual void leave();
    51         virtual void ticked(float dt, uint64_t time);
     51        virtual void ticked(const Clock& time);
    5252
    5353        void loadLevel();
     
    5656    private:
    5757
    58         float timefactor_;       //!< A factor to change the gamespeed
     58        float timeFactor_;       //!< A factor to change the gamespeed
    5959
    6060        KeyBinder*            keyBinder_;        //!< tool that loads and manages the input bindings
Note: See TracChangeset for help on using the changeset viewer.