diff options
author | Walter van Niftrik | 2018-08-04 00:34:59 +0200 |
---|---|---|
committer | Walter van Niftrik | 2018-12-26 12:28:09 +0100 |
commit | e59340e191d94c6ad58c0d9c8554e24e54324536 (patch) | |
tree | 42c10186dd101070da25a05e76a0931333e62ea3 /engines/adl/adl.h | |
parent | 8c6085d5e57d83ae04f6afcd0b35a33e344200d5 (diff) | |
download | scummvm-rg350-e59340e191d94c6ad58c0d9c8554e24e54324536.tar.gz scummvm-rg350-e59340e191d94c6ad58c0d9c8554e24e54324536.tar.bz2 scummvm-rg350-e59340e191d94c6ad58c0d9c8554e24e54324536.zip |
ADL: Add debug function to load commands from file
Diffstat (limited to 'engines/adl/adl.h')
-rw-r--r-- | engines/adl/adl.h | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/engines/adl/adl.h b/engines/adl/adl.h index d53cf5a67c..5de53ca02f 100644 --- a/engines/adl/adl.h +++ b/engines/adl/adl.h @@ -48,6 +48,7 @@ class WriteStream; class SeekableReadStream; class File; struct Event; +class RandomSource; } namespace Adl { @@ -399,9 +400,14 @@ protected: bool _isRestarting, _isRestoring, _isQuitting; bool _canSaveNow, _canRestoreNow; bool _abortScript; + Common::RandomSource *_random; const AdlGameDescription *_gameDescription; + mutable Common::File *_inputScript; + mutable uint _scriptDelay; + mutable bool _scriptPaused; + private: virtual void runIntro() { } virtual void init() = 0; @@ -411,7 +417,10 @@ private: virtual void loadRoom(byte roomNr) = 0; virtual void showRoom() = 0; virtual void switchRegion(byte region) { } - + void runScript(const char *filename) const; + void stopScript() const; + void setScriptDelay(uint delay) const { _scriptDelay = delay; } + Common::String getScriptLine() const; // Engine Common::Error run(); bool hasFeature(EngineFeature f) const; |