TITANIC: Added TTword isClass method

This commit is contained in:
Paul Gilbert 2016-05-22 15:51:35 -04:00
parent 73e2e8f429
commit 938ec867fe
2 changed files with 8 additions and 1 deletions

View File

@ -49,7 +49,7 @@
*/
#define VERSION_NUMBER 1
#define HEADER_SIZE 0x290
#define HEADER_SIZE 0x300
Common::File inputFile, outputFile;
Common::PEResources res;
@ -349,6 +349,8 @@ void writeData() {
writeStringArray("TEXT/REPLACEMENTS1", 0x21BDB0, 218);
writeStringArray("TEXT/REPLACEMENTS2", 0x21C120, 1576);
writeStringArray("TEXT/REPLACEMENTS3", 0x21D9C8, 82);
writeStringArray("TEXT/PRONOUNS", 0x22F718, 15);
writeNumbers();
}

View File

@ -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
*/