aboutsummaryrefslogtreecommitdiff
path: root/engines/m4/globals.h
diff options
context:
space:
mode:
Diffstat (limited to 'engines/m4/globals.h')
-rw-r--r--engines/m4/globals.h15
1 files changed, 11 insertions, 4 deletions
diff --git a/engines/m4/globals.h b/engines/m4/globals.h
index 5f106a3ce7..0ff67cb79c 100644
--- a/engines/m4/globals.h
+++ b/engines/m4/globals.h
@@ -213,6 +213,16 @@ enum RexPlayerSex { SEX_MALE = 0, SEX_FEMALE = 2, SEX_UNKNOWN = 1};
enum MadsDialogType { DIALOG_NONE = 0, DIALOG_GAME_MENU = 1, DIALOG_SAVE = 2, DIALOG_RESTORE = 3, DIALOG_OPTIONS = 4,
DIALOG_DIFFICULTY = 5, DIALOG_ERROR = 6};
+struct MadsConfigData {
+ bool musicFlag;
+ bool soundFlag;
+ bool easyMouse;
+ bool invObjectsStill;
+ bool textWindowStill;
+ int storyMode;
+ int screenFades;
+};
+
class MadsGlobals : public Globals {
private:
struct MessageItem {
@@ -234,10 +244,7 @@ public:
// MADS variables
int _globals[TOTAL_NUM_VARIABLES];
- bool easyMouse;
- bool invObjectsStill;
- bool textWindowStill;
- int storyMode;
+ MadsConfigData _config;
bool playerSpriteChanged;
MadsDialogType dialogType;
int sceneNumber;