aboutsummaryrefslogtreecommitdiff
path: root/engines/titanic/true_talk/tt_word.h
diff options
context:
space:
mode:
authorPaul Gilbert2016-05-22 15:51:35 -0400
committerPaul Gilbert2016-07-15 19:14:53 -0400
commit938ec867fe6d172c4489bb28ab4a2609004459dc (patch)
tree6c5f02aa645ac00c666d22e699d89b5180faafe4 /engines/titanic/true_talk/tt_word.h
parent73e2e8f429eea33e121d93dbc2c38b8be52709d8 (diff)
downloadscummvm-rg350-938ec867fe6d172c4489bb28ab4a2609004459dc.tar.gz
scummvm-rg350-938ec867fe6d172c4489bb28ab4a2609004459dc.tar.bz2
scummvm-rg350-938ec867fe6d172c4489bb28ab4a2609004459dc.zip
TITANIC: Added TTword isClass method
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();