diff options
author | Paul Gilbert | 2017-06-17 13:39:13 -0400 |
---|---|---|
committer | Paul Gilbert | 2017-06-17 13:39:13 -0400 |
commit | 9dbd9c567e298f076be0b1ce0a87b3db5566e3c9 (patch) | |
tree | a5ff22ebc96c14e25978a7854d18b24cc7733222 /engines/titanic/events.h | |
parent | 9b09900a0745a016b0ca13ce88bb9a26ab6e0547 (diff) | |
download | scummvm-rg350-9dbd9c567e298f076be0b1ce0a87b3db5566e3c9.tar.gz scummvm-rg350-9dbd9c567e298f076be0b1ce0a87b3db5566e3c9.tar.bz2 scummvm-rg350-9dbd9c567e298f076be0b1ce0a87b3db5566e3c9.zip |
TITANIC: Fix maintaining total playtime for savegames
Diffstat (limited to 'engines/titanic/events.h')
-rw-r--r-- | engines/titanic/events.h | 13 |
1 files changed, 12 insertions, 1 deletions
diff --git a/engines/titanic/events.h b/engines/titanic/events.h index 52e900c2ef..e14fbd8637 100644 --- a/engines/titanic/events.h +++ b/engines/titanic/events.h @@ -91,6 +91,7 @@ private: Common::Stack<CEventTarget *> _eventTargets; uint32 _frameCounter; uint32 _priorFrameTime; + uint _totalFrames; Common::Point _mousePos; uint _specialButtons; @@ -147,11 +148,21 @@ public: uint32 getFrameCounter() const { return _frameCounter; } /** - * Get the elapsed playtime + * Return the current game ticks */ uint32 getTicksCount() const; /** + * Get the total number of playtime frames/ticks + */ + uint32 getTotalPlayTicks() const; + + /** + * Set the total number of frames/ticks played + */ + void setTotalPlayTicks(uint frames); + + /** * Sleep for a specified period of time */ void sleep(uint time); |