diff options
author | Eugene Sandulenko | 2015-12-24 17:56:04 +0100 |
---|---|---|
committer | Eugene Sandulenko | 2015-12-27 15:41:01 +0100 |
commit | 9dc5a516609422a8fddee7898815e0ac26477d08 (patch) | |
tree | 071bc89cd51362a3d62d153a29f6e5a9373fdc71 /engines/wage/script.h | |
parent | f76eb1831cce8177a3cc477fb1e5d4954635f982 (diff) | |
download | scummvm-rg350-9dc5a516609422a8fddee7898815e0ac26477d08.tar.gz scummvm-rg350-9dc5a516609422a8fddee7898815e0ac26477d08.tar.bz2 scummvm-rg350-9dc5a516609422a8fddee7898815e0ac26477d08.zip |
WAGE: Implement script decoding
Diffstat (limited to 'engines/wage/script.h')
-rw-r--r-- | engines/wage/script.h | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/engines/wage/script.h b/engines/wage/script.h index 77b6d7d17e..fde7395298 100644 --- a/engines/wage/script.h +++ b/engines/wage/script.h @@ -52,7 +52,7 @@ namespace Wage { class Script { public: - Script(Common::SeekableReadStream *data) : _data(data) {} + Script(Common::SeekableReadStream *data); ~Script(); private: @@ -136,7 +136,14 @@ private: } }; + struct ScriptText { + int offset; + Common::String line; + }; + public: + void print(); + void printLine(int offset); bool execute(World *world, int loopCount, String *inputText, Designed *inputClick, WageEngine *callbacks); private: @@ -173,6 +180,8 @@ private: bool tryAttack(Weapon *weapon, Common::String &input); void handleAttack(Weapon *weapon); + Common::Array<ScriptText *> _scriptText; + void convertToText(); }; } // End of namespace Wage |