diff options
author | Paul Gilbert | 2016-07-03 19:07:38 -0400 |
---|---|---|
committer | Paul Gilbert | 2016-07-15 19:27:16 -0400 |
commit | 8b2d85f8e5b30aeb73817894974a4db53588565b (patch) | |
tree | 2ef506017bf8c814f86e956773ed383729756d2a /engines/titanic/support/movie_manager.h | |
parent | fb06cb4dde4d612289ea1b5830f8cd1c9e1bedfc (diff) | |
download | scummvm-rg350-8b2d85f8e5b30aeb73817894974a4db53588565b.tar.gz scummvm-rg350-8b2d85f8e5b30aeb73817894974a4db53588565b.tar.bz2 scummvm-rg350-8b2d85f8e5b30aeb73817894974a4db53588565b.zip |
TITANIC: Figured out remainder of CMovieManager
Diffstat (limited to 'engines/titanic/support/movie_manager.h')
-rw-r--r-- | engines/titanic/support/movie_manager.h | 16 |
1 files changed, 14 insertions, 2 deletions
diff --git a/engines/titanic/support/movie_manager.h b/engines/titanic/support/movie_manager.h index 91ea75e49b..2920d909b7 100644 --- a/engines/titanic/support/movie_manager.h +++ b/engines/titanic/support/movie_manager.h @@ -25,6 +25,7 @@ #include "titanic/core/list.h" #include "titanic/core/resource_key.h" +#include "titanic/sound/sound_manager.h" namespace Titanic { @@ -35,17 +36,28 @@ class CMovieManagerBase { public: virtual ~CMovieManagerBase() {} + /** + * Create a new movie and return it + */ virtual CMovie *createMovie(const CResourceKey &key, CVideoSurface *surface) = 0; }; class CMovieManager : public CMovieManagerBase { private: - int _field4; + CSoundManager *_soundManager; public: - CMovieManager() : CMovieManagerBase(), _field4(0) {} + CMovieManager() : CMovieManagerBase(), _soundManager(nullptr) {} virtual ~CMovieManager() {} + /** + * Create a new movie and return it + */ virtual CMovie *createMovie(const CResourceKey &key, CVideoSurface *surface); + + /** + * Sets the sound manager that will be attached to all created movies + */ + void setSoundManager(CSoundManager *soundManager) { _soundManager = soundManager; } }; } // End of namespace Titanic |