aboutsummaryrefslogtreecommitdiff
path: root/engines/titanic/support/exe_resources.h
diff options
context:
space:
mode:
authorPaul Gilbert2017-09-18 18:16:03 -0400
committerPaul Gilbert2017-09-18 18:16:03 -0400
commit5af8ed228d729dd9ef71f5f6cea7adb254dff7a4 (patch)
tree042295fae00eb651b35f3702408e60944462ae88 /engines/titanic/support/exe_resources.h
parent1d4e2c67fa20d962b0755cbe6a9c653f3bec76e5 (diff)
downloadscummvm-rg350-5af8ed228d729dd9ef71f5f6cea7adb254dff7a4.tar.gz
scummvm-rg350-5af8ed228d729dd9ef71f5f6cea7adb254dff7a4.tar.bz2
scummvm-rg350-5af8ed228d729dd9ef71f5f6cea7adb254dff7a4.zip
TITANIC: Add VocabMode enum, fix German vocab loading
Diffstat (limited to 'engines/titanic/support/exe_resources.h')
-rw-r--r--engines/titanic/support/exe_resources.h17
1 files changed, 13 insertions, 4 deletions
diff --git a/engines/titanic/support/exe_resources.h b/engines/titanic/support/exe_resources.h
index 993c34db97..382df39984 100644
--- a/engines/titanic/support/exe_resources.h
+++ b/engines/titanic/support/exe_resources.h
@@ -29,6 +29,8 @@ class CScriptHandler;
enum FileHandle { HANDLE_STDIN = 0, HANDLE_STDOUT = 1, HANDLE_STDERR = 2 };
+enum VocabMode { VOCAB_MODE_NONE = 0, VOCAB_MODE_EN = 3, VOCAB_MODE_DE = 5 };
+
class CExeResources {
public:
CScriptHandler *_owner;
@@ -37,14 +39,21 @@ public:
int _fieldC;
int _field10;
int _field14;
- int _field18;
+ VocabMode _vocabMode;
public:
CExeResources();
- void reset(CScriptHandler *owner, int val1, int val2);
+ void reset(CScriptHandler *owner, int val1, VocabMode vocabMode);
+
+ /**
+ * Tests whether the vocab mode equals the passed mode
+ */
+ bool isVocabMode(int mode) const { return _vocabMode == mode; }
- bool is18Equals(int val) const { return _field18 == val; }
- int get18() const { return _field18; }
+ /**
+ * Returns the vocab mode
+ */
+ VocabMode getVocabMode() const { return _vocabMode; }
};
} // End of namespace Titanic