diff options
Diffstat (limited to 'engines')
-rw-r--r-- | engines/pink/objects/actions/action_cel.cpp | 1 | ||||
-rw-r--r-- | engines/pink/objects/actions/action_sound.cpp | 1 | ||||
-rw-r--r-- | engines/pink/objects/actors/lead_actor.cpp | 1 | ||||
-rw-r--r-- | engines/pink/pda_mgr.cpp | 1 | ||||
-rw-r--r-- | engines/pink/pink.cpp | 12 | ||||
-rw-r--r-- | engines/pink/pink.h | 6 |
6 files changed, 14 insertions, 8 deletions
diff --git a/engines/pink/objects/actions/action_cel.cpp b/engines/pink/objects/actions/action_cel.cpp index b81b7e6b8b..383f4ac77b 100644 --- a/engines/pink/objects/actions/action_cel.cpp +++ b/engines/pink/objects/actions/action_cel.cpp @@ -25,6 +25,7 @@ #include "pink/archive.h" #include "pink/cel_decoder.h" +#include "pink/director.h" #include "pink/pink.h" #include "pink/objects/actions/action_cel.h" #include "pink/objects/actors/actor.h" diff --git a/engines/pink/objects/actions/action_sound.cpp b/engines/pink/objects/actions/action_sound.cpp index 0dcfa85cd7..6c13c42ac2 100644 --- a/engines/pink/objects/actions/action_sound.cpp +++ b/engines/pink/objects/actions/action_sound.cpp @@ -24,6 +24,7 @@ #include "pink/archive.h" #include "pink/pink.h" +#include "pink/director.h" #include "pink/sound.h" #include "pink/objects/actions/action_sound.h" #include "pink/objects/actors/actor.h" diff --git a/engines/pink/objects/actors/lead_actor.cpp b/engines/pink/objects/actors/lead_actor.cpp index 7e75c8a8f0..216797842e 100644 --- a/engines/pink/objects/actors/lead_actor.cpp +++ b/engines/pink/objects/actors/lead_actor.cpp @@ -23,6 +23,7 @@ #include "pink/archive.h" #include "pink/cursor_mgr.h" #include "pink/pink.h" +#include "pink/director.h" #include "pink/objects/actions/action.h" #include "pink/objects/actors/supporting_actor.h" #include "pink/objects/actors/lead_actor.h" diff --git a/engines/pink/pda_mgr.cpp b/engines/pink/pda_mgr.cpp index 050daaba6e..29911e19f6 100644 --- a/engines/pink/pda_mgr.cpp +++ b/engines/pink/pda_mgr.cpp @@ -22,6 +22,7 @@ #include "pink/pda_mgr.h" #include "pink/pink.h" +#include "pink/director.h" #include "pink/objects/actors/pda_button_actor.h" #include "pink/objects/actors/lead_actor.h" #include "pink/objects/pages/pda_page.h" diff --git a/engines/pink/pink.cpp b/engines/pink/pink.cpp index d639a62880..1a06d11e3f 100644 --- a/engines/pink/pink.cpp +++ b/engines/pink/pink.cpp @@ -32,6 +32,7 @@ #include "pink/pink.h" #include "pink/console.h" +#include "pink/director.h" #include "pink/objects/module.h" #include "pink/objects/actors/lead_actor.h" @@ -40,7 +41,7 @@ namespace Pink { PinkEngine::PinkEngine(OSystem *system, const ADGameDescription *desc) : Engine(system), _console(nullptr), _rnd("pink"), _desc(*desc), _bro(nullptr), _actor(nullptr), - _module(nullptr), _director(), _pdaMgr(this) { + _module(nullptr), _director(nullptr), _pdaMgr(this) { debug("PinkEngine constructed"); DebugMan.addDebugChannel(kPinkDebugGeneral, "general", "General issues"); @@ -72,6 +73,7 @@ Common::Error PinkEngine::init() { initGraphics(640, 480); _console = new Console(this); + _director = new Director(); Common::String orbName; Common::String broName; @@ -112,7 +114,7 @@ Common::Error Pink::PinkEngine::run() { while (!shouldQuit()) { Common::Event event; while (_eventMan->pollEvent(event)) { - if (_director.processEvent(event)) + if (_director->processEvent(event)) continue; switch (event.type) { @@ -146,7 +148,7 @@ Common::Error Pink::PinkEngine::run() { } _actor->update(); - _director.update(); + _director->update(); _system->delayMillis(10); } @@ -174,7 +176,7 @@ void PinkEngine::initModule(const Common::String &moduleName, const Common::Stri void PinkEngine::changeScene() { setCursor(kLoadingCursor); - _director.clear(); + _director->clear(); if (!_nextModule.empty() && _nextModule != _module->getName()) initModule(_nextModule, _nextPage, nullptr); @@ -285,7 +287,7 @@ bool PinkEngine::hasFeature(Engine::EngineFeature f) const { void PinkEngine::pauseEngineIntern(bool pause) { Engine::pauseEngineIntern(pause); - _director.pause(pause); + _director->pause(pause); } bool PinkEngine::isPeril() { diff --git a/engines/pink/pink.h b/engines/pink/pink.h index 627fde3249..901717890d 100644 --- a/engines/pink/pink.h +++ b/engines/pink/pink.h @@ -33,7 +33,6 @@ #include "gui/debugger.h" #include "pink/constants.h" -#include "pink/director.h" #include "pink/file.h" #include "pink/utils.h" #include "pink/pda_mgr.h" @@ -63,6 +62,7 @@ namespace Pink { class Console; +class Director; class Archive; class NamedObject; class Module; @@ -110,7 +110,7 @@ public: OrbFile *getOrb() { return &_orb; } BroFile *getBro() { return _bro; } Common::RandomSource &getRnd() { return _rnd; }; - Director *getDirector() { return &_director; } + Director *getDirector() { return _director; } PDAMgr &getPdaMgr() { return _pdaMgr; } void setNextExecutors(const Common::String &nextModule, const Common::String &nextPage) { _nextModule = nextModule; _nextPage = nextPage; } @@ -137,7 +137,7 @@ private: OrbFile _orb; BroFile *_bro; - Director _director; + Director *_director; LeadActor *_actor; Module *_module; |