From e9669b8e2bcc4a65d5cc1225e9328d9171726690 Mon Sep 17 00:00:00 2001 From: Denis Kasak Date: Wed, 29 Jul 2009 01:11:53 +0000 Subject: * Moved event handling to DraciEngine::handleEvents() * Added Game::start() method which is called from DraciEngine::go() * Made Game::loop() suitable for calling from other places (like GPL scripts) by handling events, redrawing the screen, etc from inside. This way it doesn't freeze the game if it doesn't return immediately. * Added Game::shouldQuit() and Game::setQuit() which can be used to signal the engine to quit. * Fixed race condition related to mouse buttons not getting released. * Instead of deleting frames for the title animation and adding a new one, reset the text for its frame. svn-id: r42875 --- engines/draci/draci.h | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'engines/draci/draci.h') diff --git a/engines/draci/draci.h b/engines/draci/draci.h index e6b78f310a..1f43fc8f68 100644 --- a/engines/draci/draci.h +++ b/engines/draci/draci.h @@ -50,6 +50,8 @@ public: Common::Error run(); bool hasFeature(Engine::EngineFeature f) const; + + bool handleEvents(); Screen *_screen; Mouse *_mouse; @@ -70,6 +72,8 @@ public: BArchive *_walkingMapsArchive; BArchive *_initArchive; + bool _showWalkingMap; + Common::RandomSource _rnd; }; -- cgit v1.2.3