diff options
Diffstat (limited to 'engines/sherlock/tattoo/widget_talk.h')
-rw-r--r-- | engines/sherlock/tattoo/widget_talk.h | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/engines/sherlock/tattoo/widget_talk.h b/engines/sherlock/tattoo/widget_talk.h index 11b1b64ce4..1dbbc22a69 100644 --- a/engines/sherlock/tattoo/widget_talk.h +++ b/engines/sherlock/tattoo/widget_talk.h @@ -41,6 +41,9 @@ class WidgetTalk: public WidgetBase { struct StatementLine { Common::String _line; int _num; + + StatementLine() : _num(0) {} + StatementLine(const Common::String &line, int num) : _line(line), _num(num) {} }; private: int _talkScrollIndex; @@ -56,6 +59,10 @@ private: */ void render(Highlight highlightMode); + /** + * This initializes the _statementLines array, which contains the talk options split up line + * by line, as well as which statement a particular line is part of. + */ void setStatementLines(); public: WidgetTalk(SherlockEngine *vm); @@ -68,6 +75,11 @@ public: void load(); /** + * Refresh the talk display + */ + void refresh(); + + /** * Handle event processing */ virtual void handleEvents(); |