aboutsummaryrefslogtreecommitdiff
path: root/engines/wage/script.h
diff options
context:
space:
mode:
Diffstat (limited to 'engines/wage/script.h')
-rw-r--r--engines/wage/script.h11
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