aboutsummaryrefslogtreecommitdiff
path: root/engines/titanic/true_talk/tt_word.h
diff options
context:
space:
mode:
Diffstat (limited to 'engines/titanic/true_talk/tt_word.h')
-rw-r--r--engines/titanic/true_talk/tt_word.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/engines/titanic/true_talk/tt_word.h b/engines/titanic/true_talk/tt_word.h
index 05108817ce..94edee329e 100644
--- a/engines/titanic/true_talk/tt_word.h
+++ b/engines/titanic/true_talk/tt_word.h
@@ -142,6 +142,11 @@ public:
TTstringStatus getChainStatus() const;
/**
+ * Returns true if the word is of the specified class
+ */
+ bool isClass(WordClass wordClass) const { return _wordClass == wordClass; }
+
+ /**
* Copy the word and any attached to it
*/
TTword *copyWords();