aboutsummaryrefslogtreecommitdiff
path: root/engines/mads/game.h
diff options
context:
space:
mode:
Diffstat (limited to 'engines/mads/game.h')
-rw-r--r--engines/mads/game.h12
1 files changed, 9 insertions, 3 deletions
diff --git a/engines/mads/game.h b/engines/mads/game.h
index 9dd7ca0ace..4a8daed6ca 100644
--- a/engines/mads/game.h
+++ b/engines/mads/game.h
@@ -77,9 +77,9 @@ protected:
public:
SectionHandler(MADSEngine *vm): _vm(vm) {}
- virtual void loadSection() = 0;
+ virtual void preLoadSection() = 0;
virtual void sectionPtr2() = 0;
- virtual void sectionPtr3() = 0;
+ virtual void postLoadSection() = 0;
};
class Game {
@@ -88,6 +88,11 @@ private:
* Main game loop
*/
void gameLoop();
+
+ /**
+ * Inner game loop for executing gameplay within a game section
+ */
+ void sectionLoop();
protected:
MADSEngine *_vm;
MSurface *_surface;
@@ -100,8 +105,9 @@ protected:
int _saveSlot;
int _statusFlag;
DialogId _pendingDialog;
-
SectionHandler *_sectionHandler;
+ int _v1;
+ int _v2;
/**
* Constructor