From 54669e7b7e6c3e3ebad32f2d36932d8345814d2c Mon Sep 17 00:00:00 2001 From: Paul Gilbert Date: Thu, 19 May 2016 20:49:39 -0400 Subject: TITANIC: Added an enum for TTword wordMode --- engines/titanic/true_talk/tt_word.h | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) (limited to 'engines/titanic/true_talk/tt_word.h') diff --git a/engines/titanic/true_talk/tt_word.h b/engines/titanic/true_talk/tt_word.h index ed32b35814..13a40b0262 100644 --- a/engines/titanic/true_talk/tt_word.h +++ b/engines/titanic/true_talk/tt_word.h @@ -29,6 +29,11 @@ namespace Titanic { +enum WordMode { + WMODE_NONE = 0, WMODE_1 = 1, WMODE_2 = 2, WMODE_3 = 3, + WMODE_6 = 6, WMODE_8 = 8 +}; + class TTword { protected: TTstringStatus _status; @@ -48,9 +53,9 @@ public: TTword *_nextP; TTsynonym *_synP; TTstring _string; - int _wordMode; + WordMode _wordMode; public: - TTword(TTstring &str, int mode, int val2); + TTword(TTstring &str, WordMode mode, int val2); TTword(TTword *src); ~TTword(); @@ -87,7 +92,7 @@ public: /** * Load the word */ - int load(SimpleFile *file, int mode); + int load(SimpleFile *file, WordMode mode); /** * Finds a synonym in the word by name, if one exists -- cgit v1.2.3