From 9dc5a516609422a8fddee7898815e0ac26477d08 Mon Sep 17 00:00:00 2001 From: Eugene Sandulenko Date: Thu, 24 Dec 2015 17:56:04 +0100 Subject: WAGE: Implement script decoding --- engines/wage/script.h | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) (limited to 'engines/wage/script.h') 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; + void convertToText(); }; } // End of namespace Wage -- cgit v1.2.3