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/orxonox/gamestates/GSServer.cc

    r1672 r1674  
    8383    }
    8484
    85     void GSServer::ticked(float dt, uint64_t time)
     85    void GSServer::ticked(const Clock& time)
    8686    {
    87         GSLevel::ticked(dt, time);
    88         server_->tick(dt);
    89         this->tickChild(dt, time);
     87        GSLevel::ticked(time);
     88        server_->tick(time.getDeltaTime());
     89        this->tickChild(time);
    9090    }
    9191}
Note: See TracChangeset for help on using the changeset viewer.