aboutsummaryrefslogtreecommitdiff
path: root/engines/mads/nebular/game_nebular.h
diff options
context:
space:
mode:
authorPaul Gilbert2014-04-21 20:50:05 -0400
committerPaul Gilbert2014-04-21 20:50:05 -0400
commit692af23f6f0a698e9089fcef0592fcb20e56efa6 (patch)
tree101e3135a7e22f1e97d40893897b253fbf16d8f1 /engines/mads/nebular/game_nebular.h
parentff70186855bec22fe77043d89917b189218ff856 (diff)
downloadscummvm-rg350-692af23f6f0a698e9089fcef0592fcb20e56efa6.tar.gz
scummvm-rg350-692af23f6f0a698e9089fcef0592fcb20e56efa6.tar.bz2
scummvm-rg350-692af23f6f0a698e9089fcef0592fcb20e56efa6.zip
MADS: Create a Globals base class that the games will derive from
Diffstat (limited to 'engines/mads/nebular/game_nebular.h')
-rw-r--r--engines/mads/nebular/game_nebular.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/engines/mads/nebular/game_nebular.h b/engines/mads/nebular/game_nebular.h
index 4d011c2f4a..7d64e3e49f 100644
--- a/engines/mads/nebular/game_nebular.h
+++ b/engines/mads/nebular/game_nebular.h
@@ -25,6 +25,7 @@
#include "common/scummsys.h"
#include "mads/game.h"
+#include "mads/globals.h"
#include "mads/nebular/globals_nebular.h"
namespace MADS {
@@ -62,9 +63,11 @@ protected:
virtual void checkShowDialog();
public:
- Globals _globals;
+ NebularGlobals _globals;
StoryMode _storyMode;
+ virtual Globals &globals() { return _globals; }
+
virtual void doObjectAction();
virtual void unhandledAction();