Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Aug 28, 2008, 8:30:25 PM (17 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/core/GameState.cc

    r1672 r1674  
    3434
    3535#include "GameState.h"
    36 #include <cassert>
    3736#include "Debug.h"
    3837#include "Exception.h"
     
    359358        This method is not virtual! You cannot override it therefore.
    360359    */
    361     void GameState::tick(float dt, uint64_t time)
     360    void GameState::tick(const Clock& time)
    362361    {
    363362        this->operation_.running = true;
    364         this->ticked(dt, time);
     363        this->ticked(time);
    365364        this->operation_.running = false;
    366365    }
Note: See TracChangeset for help on using the changeset viewer.