aboutsummaryrefslogtreecommitdiff
path: root/engines/draci/game.h
diff options
context:
space:
mode:
authorDenis Kasak2009-07-29 19:38:02 +0000
committerDenis Kasak2009-07-29 19:38:02 +0000
commit07042e31bcabd4c33f38a7c3a41ca6c603525011 (patch)
treea461bc778e19daf45306ee40defe3f6619da28e9 /engines/draci/game.h
parentbc89ce23d38c2d26ae5336297d628099cdbf8498 (diff)
downloadscummvm-rg350-07042e31bcabd4c33f38a7c3a41ca6c603525011.tar.gz
scummvm-rg350-07042e31bcabd4c33f38a7c3a41ca6c603525011.tar.bz2
scummvm-rg350-07042e31bcabd4c33f38a7c3a41ca6c603525011.zip
* Made Game::loop() exit conditionally depending on whether the internal Game::_shouldExitLoop variable is set.
* Added mechanisms for signalling whether the main game loop should exit or not (Game::setExitLoop() and Game::shouldExitLoop()) svn-id: r42899
Diffstat (limited to 'engines/draci/game.h')
-rw-r--r--engines/draci/game.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/engines/draci/game.h b/engines/draci/game.h
index 5cfa5d894e..6393ea7573 100644
--- a/engines/draci/game.h
+++ b/engines/draci/game.h
@@ -215,6 +215,9 @@ public:
bool shouldQuit() { return _shouldQuit; }
void setQuit(bool quit) { _shouldQuit = quit; }
+ bool shouldExitLoop() { return _shouldExitLoop; }
+ void setExitLoop(bool exit) { _shouldExitLoop = exit; }
+
private:
DraciEngine *_vm;
@@ -230,6 +233,7 @@ private:
LoopStatus _loopStatus;
bool _shouldQuit;
+ bool _shouldExitLoop;
int _objUnderCursor;
int _markedAnimationIndex; //!< Used by the Mark GPL command