aboutsummaryrefslogtreecommitdiff
path: root/engines/titanic/true_talk/tt_sentence.h
diff options
context:
space:
mode:
authorPaul Gilbert2016-05-28 09:18:08 -0400
committerPaul Gilbert2016-07-15 19:16:02 -0400
commit8a3118912191736620580fd4ead9b19b15d3c3dd (patch)
tree9c51daa00cd2affd9461bfc86a5bfbbd03cc9520 /engines/titanic/true_talk/tt_sentence.h
parent5ffe93ad9b78d1354df62dff2bbbb743629c56f3 (diff)
downloadscummvm-rg350-8a3118912191736620580fd4ead9b19b15d3c3dd.tar.gz
scummvm-rg350-8a3118912191736620580fd4ead9b19b15d3c3dd.tar.bz2
scummvm-rg350-8a3118912191736620580fd4ead9b19b15d3c3dd.zip
TITANIC: Adding more to TTparser considerRequests, and support methods
Diffstat (limited to 'engines/titanic/true_talk/tt_sentence.h')
-rw-r--r--engines/titanic/true_talk/tt_sentence.h17
1 files changed, 15 insertions, 2 deletions
diff --git a/engines/titanic/true_talk/tt_sentence.h b/engines/titanic/true_talk/tt_sentence.h
index d168d48a61..f51ca4bdda 100644
--- a/engines/titanic/true_talk/tt_sentence.h
+++ b/engines/titanic/true_talk/tt_sentence.h
@@ -85,7 +85,20 @@ public:
int getStatus() const { return _status; }
- TTconcept *getFrameSlot(int conceptIndex, TTconceptNode *conceptNode);
+ /**
+ * Gets a concept slot
+ */
+ TTconcept *getFrameEntry(int slotIndex, const TTconceptNode *conceptNode = nullptr) const;
+
+ /**
+ * Gets a conecpt slot and returns a duplicate of it
+ */
+ TTconcept *getFrameSlot(int slotIndex, const TTconceptNode *conceptNode = nullptr) const;
+
+ /**
+ * Returns true if the specified slot has an attached word with a given class
+ */
+ bool isFrameSlotClass(int slotIndex, WordClass wordClass, const TTconceptNode *conceptNode = nullptr) const;
/**
* Adds a found vocab word to the list of words representing
@@ -94,7 +107,7 @@ public:
*/
int storeVocabHit(TTword *word);
- bool fn2(int conceptIndex, const TTstring &str, TTconceptNode *conceptNode);
+ bool fn2(int slotIndex, const TTstring &str, TTconceptNode *conceptNode);
bool fn4(int mode, int wordId, TTconceptNode *node);
};