aboutsummaryrefslogtreecommitdiff
path: root/engines/titanic/true_talk/tt_word.h
diff options
context:
space:
mode:
authorPaul Gilbert2016-05-11 07:23:08 -0400
committerPaul Gilbert2016-07-10 16:39:11 -0400
commitb8c41050211c6b5c25a9e02a767a54b8e1ef55d7 (patch)
treeab171016649c8a56ad365c7234b4b6bf73703df2 /engines/titanic/true_talk/tt_word.h
parente86ce94441a032de3707eb7576060d9281a3fec0 (diff)
downloadscummvm-rg350-b8c41050211c6b5c25a9e02a767a54b8e1ef55d7.tar.gz
scummvm-rg350-b8c41050211c6b5c25a9e02a767a54b8e1ef55d7.tar.bz2
scummvm-rg350-b8c41050211c6b5c25a9e02a767a54b8e1ef55d7.zip
TITANIC: Implemented STVocab addWord
Diffstat (limited to 'engines/titanic/true_talk/tt_word.h')
-rw-r--r--engines/titanic/true_talk/tt_word.h9
1 files changed, 7 insertions, 2 deletions
diff --git a/engines/titanic/true_talk/tt_word.h b/engines/titanic/true_talk/tt_word.h
index 277f180d6c..a535cac834 100644
--- a/engines/titanic/true_talk/tt_word.h
+++ b/engines/titanic/true_talk/tt_word.h
@@ -31,8 +31,6 @@ namespace Titanic {
class TTword {
protected:
- TTString _string;
- TTsynonymNode *_synP;
TTStringStatus _status;
int _wordMode;
int _field1C;
@@ -48,6 +46,8 @@ protected:
bool testFileHandle(SimpleFile *file) const;
public:
TTword *_pNext;
+ TTsynonymNode *_synP;
+ TTString _string;
public:
TTword(TTString &str, int mode, int val2);
@@ -57,6 +57,11 @@ public:
int readSyn(SimpleFile *file);
/**
+ * Either sets the first synonym for a word, or adds it to an existing one
+ */
+ void appendNode(TTsynonymNode *node);
+
+ /**
* Load the word
*/
int load(SimpleFile *file, int mode);