From 8ee283d921ec88bad61469e136a31aef0ff5b9ca Mon Sep 17 00:00:00 2001 From: Paul Gilbert Date: Sun, 23 Feb 2014 21:34:20 -0500 Subject: MADS: Implemented sound player logic and outer game loop --- engines/mads/game.h | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) (limited to 'engines/mads/game.h') 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 -- cgit v1.2.3