diff options
| author | Johannes Schickel | 2010-10-27 22:52:02 +0000 | 
|---|---|---|
| committer | Johannes Schickel | 2010-10-27 22:52:02 +0000 | 
| commit | dac9493069509518c0f508f93630584765bac5df (patch) | |
| tree | bc2b719b8d8eb0cd6f0e20cf8a629f8b18a9b692 /engines/engine.h | |
| parent | ab1c54a9eef79090c7cf81f09e561480b4964671 (diff) | |
| download | scummvm-rg350-dac9493069509518c0f508f93630584765bac5df.tar.gz scummvm-rg350-dac9493069509518c0f508f93630584765bac5df.tar.bz2 scummvm-rg350-dac9493069509518c0f508f93630584765bac5df.zip | |
ENGINE: Rename resetTotalPlayTime to setTotalPlayTime.
I also extended the comment for it to show two possible use cases.
svn-id: r53895
Diffstat (limited to 'engines/engine.h')
| -rw-r--r-- | engines/engine.h | 8 | 
1 files changed, 6 insertions, 2 deletions
| diff --git a/engines/engine.h b/engines/engine.h index b1575962ff..b4764319b8 100644 --- a/engines/engine.h +++ b/engines/engine.h @@ -253,11 +253,15 @@ public:  	uint32 getTotalPlayTime() const;  	/** -	 * Reset the game time counter to the specified time. +	 * Set the game time counter to the specified time. +	 * +	 * This can be used to set the play time counter after loading a savegame +	 * for example. Another use case is in case the engine wants to exclude +	 * time from the counter the user spent in original engine dialogs.  	 *  	 * @param time Play time to set up in ms.  	 */ -	void resetTotalPlayTime(uint32 time = 0); +	void setTotalPlayTime(uint32 time = 0);  	inline Common::TimerManager *getTimerManager() { return _timer; }  	inline Common::EventManager *getEventManager() { return _eventMan; } | 
