aboutsummaryrefslogtreecommitdiff
path: root/engines/titanic/true_talk/tt_word.h
diff options
context:
space:
mode:
authorPaul Gilbert2016-05-10 20:51:21 -0400
committerPaul Gilbert2016-07-10 16:39:06 -0400
commit3a464e8770606d75ec7a641eac207b58c95303c1 (patch)
treefc0c34166fd102b119537cfe4fd9cd3ee84dd8f4 /engines/titanic/true_talk/tt_word.h
parenta223309934452ca6652112060aac9bd7272d4ddb (diff)
downloadscummvm-rg350-3a464e8770606d75ec7a641eac207b58c95303c1.tar.gz
scummvm-rg350-3a464e8770606d75ec7a641eac207b58c95303c1.tar.bz2
scummvm-rg350-3a464e8770606d75ec7a641eac207b58c95303c1.zip
TITANIC: Added new TTstringNode and TTsynonymNode classes
Diffstat (limited to 'engines/titanic/true_talk/tt_word.h')
-rw-r--r--engines/titanic/true_talk/tt_word.h8
1 files changed, 7 insertions, 1 deletions
diff --git a/engines/titanic/true_talk/tt_word.h b/engines/titanic/true_talk/tt_word.h
index a24099c2ab..0d6564a925 100644
--- a/engines/titanic/true_talk/tt_word.h
+++ b/engines/titanic/true_talk/tt_word.h
@@ -25,6 +25,7 @@
#include "titanic/support/simple_file.h"
#include "titanic/true_talk/tt_string.h"
+#include "titanic/true_talk/tt_string_node.h"
namespace Titanic {
@@ -32,7 +33,7 @@ class TTword {
protected:
TTString _string;
int _fieldC;
- int _field10;
+ TTsynonymNode *_synP;
TTStringStatus _status;
int _wordMode;
int _field1C;
@@ -44,9 +45,14 @@ protected:
* Read in a number
*/
uint readNumber(const char *str);
+
+ bool testFileHandle(SimpleFile *file) const;
public:
TTword(TTString &str, int mode, int val2);
+ /**
+ * Read in a synonym for the given word
+ */
int readSyn(SimpleFile *file);
/**