From 938ec867fe6d172c4489bb28ab4a2609004459dc Mon Sep 17 00:00:00 2001 From: Paul Gilbert Date: Sun, 22 May 2016 15:51:35 -0400 Subject: TITANIC: Added TTword isClass method --- engines/titanic/true_talk/tt_word.h | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'engines/titanic/true_talk/tt_word.h') 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 @@ -141,6 +141,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 */ -- cgit v1.2.3