aboutsummaryrefslogtreecommitdiff
path: root/engines/titanic/true_talk/tt_word.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'engines/titanic/true_talk/tt_word.cpp')
-rw-r--r--engines/titanic/true_talk/tt_word.cpp14
1 files changed, 14 insertions, 0 deletions
diff --git a/engines/titanic/true_talk/tt_word.cpp b/engines/titanic/true_talk/tt_word.cpp
index a09af4ab34..bc029d001a 100644
--- a/engines/titanic/true_talk/tt_word.cpp
+++ b/engines/titanic/true_talk/tt_word.cpp
@@ -109,6 +109,16 @@ void TTword::setSyn(TTsynonym *synP) {
_synP = synP;
}
+int TTword::setSynStr(TTstring *str) {
+ if (str->empty())
+ return 4;
+
+ TTstring *newStr = new TTstring(*str);
+ TTsynonym *newSyn = new TTsynonym(4, newStr);
+ setSyn(newSyn);
+ return 0;
+}
+
void TTword::appendNode(TTsynonym *node) {
if (_synP)
_synP->addNode(node);
@@ -172,6 +182,10 @@ TTword *TTword::copy() {
return new TTword(this);
}
+void TTword::unkFn1(int val) {
+ // TODO: This method seems to reference a field beyond the size of TTword
+}
+
FileHandle TTword::getSynFile() const {
return _synP ? _synP->_file : HANDLE_STDIN;
}