diff options
Diffstat (limited to 'engines/titanic/true_talk/tt_word.h')
-rw-r--r-- | engines/titanic/true_talk/tt_word.h | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/engines/titanic/true_talk/tt_word.h b/engines/titanic/true_talk/tt_word.h index 94edee329e..ef907964c9 100644 --- a/engines/titanic/true_talk/tt_word.h +++ b/engines/titanic/true_talk/tt_word.h @@ -59,7 +59,7 @@ protected: public: TTword *_nextP; TTsynonym *_synP; - TTstring _string; + TTstring _text; WordClass _wordClass; int _id; uint _tag; @@ -111,13 +111,13 @@ public: */ bool findSynByName(const TTstring &str, TTsynonym *dest, int mode) const; - const char *c_str() const { return _string.c_str(); } + const char *c_str() const { return _text.c_str(); } operator const char *() const { return c_str(); } /** * Return the text of the word */ - const TTstring getText() { return _string; } + const TTstring getText() { return _text; } /** * Compares the word's text to a passed string @@ -137,6 +137,11 @@ public: TTstringStatus getStatus() const { return _status; } /** + * Returns true if the word is in a valid state + */ + bool isValid() const { return _status == SS_VALID; } + + /** * Return the status of the entire word chain */ TTstringStatus getChainStatus() const; |