From 82094ed5c99bc96418efdde1b75018482c61e888 Mon Sep 17 00:00:00 2001 From: Dmitry Iskrich Date: Tue, 14 Jun 2016 16:34:52 +0300 Subject: DIRECTOR: Process events in transitions --- engines/director/score.h | 17 +++++++++-------- 1 file changed, 9 insertions(+), 8 deletions(-) (limited to 'engines/director/score.h') diff --git a/engines/director/score.h b/engines/director/score.h index 944a7e467f..885df973a5 100644 --- a/engines/director/score.h +++ b/engines/director/score.h @@ -34,6 +34,7 @@ namespace Director { class Lingo; class DirectorSound; +class Score; #define CHANNEL_COUNT 24 @@ -242,10 +243,10 @@ public: ~Frame(); Frame(const Frame &frame); void readChannel(Common::SeekableReadStream &stream, uint16 offset, uint16 size); - void prepareFrame(Archive &_movie, Graphics::ManagedSurface &surface, Graphics::ManagedSurface &trailSurface, Common::Rect movieRect); + void prepareFrame(Score *score); uint16 getSpriteIDFromPos(Common::Point pos); private: - void playTransition(Graphics::ManagedSurface &frameSurface, Common::Rect transRect); + void playTransition(Score *score); void playSoundChannel(); void renderSprites(Archive &_movie, Graphics::ManagedSurface &surface, Common::Rect movieRect, bool renderTrail); void readPaletteInfo(Common::SeekableReadStream &stream); @@ -279,9 +280,9 @@ public: ~Score(); static Common::Rect readRect(Common::SeekableReadStream &stream); void startLoop(); - -private: void processEvents(); +private: + void update(); void readVersion(uint32 rid); void loadConfig(Common::SeekableReadStream &stream); @@ -302,6 +303,10 @@ public: Common::HashMap _labels; Common::HashMap _actions; Common::HashMap _fontMap; + Graphics::ManagedSurface *_surface; + Graphics::ManagedSurface *_trailSurface; + Archive *_movieArchive; + Common::Rect _movieRect; private: uint16 _versionMinor; uint16 _versionMajor; @@ -317,11 +322,7 @@ private: uint32 _flags; bool _stopPlay; uint16 _castArrayEnd; - Common::Rect _movieRect; uint16 _stageColor; - Archive *_movieArchive; - Graphics::ManagedSurface *_surface; - Graphics::ManagedSurface *_trailSurface; Lingo *_lingo; DirectorSound *_soundManager; }; -- cgit v1.2.3