From 4c867aa62fea19f2bff7d3aa632b340aae110306 Mon Sep 17 00:00:00 2001 From: Paul Gilbert Date: Mon, 24 Feb 2014 00:38:49 -0500 Subject: MADS: Shift some fields and methods to Dialogs and Game classes --- engines/mads/game.h | 18 ++++++++++++------ 1 file changed, 12 insertions(+), 6 deletions(-) (limited to 'engines/mads/game.h') 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 _visitedScenes; + byte *_quotes; int _v1; int _v2; int _v3; int _v4; int _v5; int _v6; - byte *_quotes; /** * Constructor @@ -155,11 +166,6 @@ protected: */ virtual void initialiseGlobals() = 0; - /** - * Show a game dialog - */ - virtual void showDialog() = 0; - /** * Set up the section handler specific to each section */ -- cgit v1.2.3