diff options
author | Aki <please@ignore.pl> | 2022-03-08 19:33:59 +0100 |
---|---|---|
committer | Aki <please@ignore.pl> | 2022-03-08 19:33:59 +0100 |
commit | e472d9537ee7919630e5f6039f8425b06f6c4213 (patch) | |
tree | c146d59b532ec1ae248727faa182102cab6365e2 /Stars45/Game.cpp | |
parent | b563a07d9fcaa58514eeb3ec78438db56ecf2e63 (diff) | |
download | starshatter-e472d9537ee7919630e5f6039f8425b06f6c4213.zip starshatter-e472d9537ee7919630e5f6039f8425b06f6c4213.tar.gz starshatter-e472d9537ee7919630e5f6039f8425b06f6c4213.tar.bz2 |
Replaced time funcs from Game with Clock equivalents
This excludes time compression stuff, as it will need some more
attention due to casting.
I don't quite like the long invocations that go through game instance
first then get the clock. It looks bad. I'll need to rethink how
modules are being made available in the codebase.
Diffstat (limited to 'Stars45/Game.cpp')
-rw-r--r-- | Stars45/Game.cpp | 39 |
1 files changed, 0 insertions, 39 deletions
diff --git a/Stars45/Game.cpp b/Stars45/Game.cpp index 97de488..5dfd828 100644 --- a/Stars45/Game.cpp +++ b/Stars45/Game.cpp @@ -182,24 +182,6 @@ Game::FrameRate() return 0; } -double -Game::FrameTime() -{ - if (game) - return game->GetClock()->Delta(); - - return 0; -} - -double -Game::GUITime() -{ - if (game) - return game->GetClock()->GuiDelta(); - - return 0; -} - // +--------------------------------------------------------------------+ bool @@ -1244,16 +1226,6 @@ Game::GetClock() return &clock; } -DWORD Game::RealTime() -{ - return clock.RealTime(); -} - -DWORD Game::GameTime() -{ - return clock.GameTime(); -} - DWORD Game::TimeCompression() { return clock.TimeCompression(); @@ -1269,14 +1241,3 @@ DWORD Game::Frame() { return frame_number; } - -void Game::ResetGameTime() -{ - clock.ResetGameTime(); -} - -void Game::SkipGameTime(double seconds) -{ - if (seconds > 0) - clock.SkipGameTime(seconds); -} |