aboutsummaryrefslogtreecommitdiff
path: root/engines/mads/game.h
diff options
context:
space:
mode:
authorPaul Gilbert2014-02-24 00:38:49 -0500
committerPaul Gilbert2014-02-24 00:38:49 -0500
commit4c867aa62fea19f2bff7d3aa632b340aae110306 (patch)
treefe2cdea63210f67b2b7506ec9549d5a6dc7e4121 /engines/mads/game.h
parent37b788b7ddb679f32653be326ae96ad9132feb1f (diff)
downloadscummvm-rg350-4c867aa62fea19f2bff7d3aa632b340aae110306.tar.gz
scummvm-rg350-4c867aa62fea19f2bff7d3aa632b340aae110306.tar.bz2
scummvm-rg350-4c867aa62fea19f2bff7d3aa632b340aae110306.zip
MADS: Shift some fields and methods to Dialogs and Game classes
Diffstat (limited to 'engines/mads/game.h')
-rw-r--r--engines/mads/game.h18
1 files changed, 12 insertions, 6 deletions
diff --git a/engines/mads/game.h b/engines/mads/game.h
index 58b6ff968a..e2b8deede5 100644
--- a/engines/mads/game.h
+++ b/engines/mads/game.h
@@ -95,6 +95,16 @@ private:
* Inner game loop for executing gameplay within a game section
*/
void sectionLoop();
+
+ /**
+ * Returns true if a given Scene Id exists in the listed of previously visited scenes.
+ */
+ bool visitedScenesExists(int sceneId);
+
+ /**
+ * Adds a scene Id to the list of previously visited scenes, if it doesn't already exist
+ */
+ void addVisitedScene(int sceneId);
protected:
MADSEngine *_vm;
MSurface *_surface;
@@ -107,13 +117,14 @@ protected:
int _saveSlot;
int _statusFlag;
SectionHandler *_sectionHandler;
+ Common::Array<int> _visitedScenes;
+ byte *_quotes;
int _v1;
int _v2;
int _v3;
int _v4;
int _v5;
int _v6;
- byte *_quotes;
/**
* Constructor
@@ -156,11 +167,6 @@ protected:
virtual void initialiseGlobals() = 0;
/**
- * Show a game dialog
- */
- virtual void showDialog() = 0;
-
- /**
* Set up the section handler specific to each section
*/
virtual void setSectionHandler() = 0;