diff options
author | Paul Gilbert | 2016-07-23 19:15:26 -0400 |
---|---|---|
committer | Paul Gilbert | 2016-07-23 19:15:26 -0400 |
commit | 2efee2ae8c1c4e285fe81bce66a594d9b949548a (patch) | |
tree | d781d99d1027eaadea2de4190f6118220d8eb81f /engines/titanic/support/time_event_info.h | |
parent | d690ca322c04ee2044b7502369c5cc104a0c7b76 (diff) | |
download | scummvm-rg350-2efee2ae8c1c4e285fe81bce66a594d9b949548a.tar.gz scummvm-rg350-2efee2ae8c1c4e285fe81bce66a594d9b949548a.tar.bz2 scummvm-rg350-2efee2ae8c1c4e285fe81bce66a594d9b949548a.zip |
TITANIC: Further timers cleanup
Diffstat (limited to 'engines/titanic/support/time_event_info.h')
-rw-r--r-- | engines/titanic/support/time_event_info.h | 14 |
1 files changed, 9 insertions, 5 deletions
diff --git a/engines/titanic/support/time_event_info.h b/engines/titanic/support/time_event_info.h index 23d0d2b803..ee787bcbef 100644 --- a/engines/titanic/support/time_event_info.h +++ b/engines/titanic/support/time_event_info.h @@ -55,13 +55,11 @@ public: CTreeItem *_target; uint _actionVal; CString _action; - uint _field2C; - uint _field30; uint _timerCtr; uint _lastTimerTicks; uint _relativeTicks; bool _done; - uint _field44; + bool _persisent; CString _targetName; public: CLASSDEF @@ -96,7 +94,10 @@ public: bool update(uint ticks); - void set44(uint val) { _field44 = val; } + /** + * Flags whether the timer will be persisent across save & loads + */ + void setPersisent(bool val) { _persisent = val; } }; class CTimeEventInfoList : public List<CTimeEventInfo> { @@ -126,7 +127,10 @@ public: */ void stop(uint id); - void set44(uint id, uint val); + /** + * Sets whether a timer with a given Id will be persisent across saves + */ + void setPersisent(uint id, bool flag); }; } // End of namespace Titanic |