From 38db7dfafedb51d0c98cadde7df746a429a663c3 Mon Sep 17 00:00:00 2001 From: Tobia Tesan Date: Wed, 21 Jun 2017 10:19:28 +0200 Subject: DIRECTOR: Add runMovieScript --- engines/director/lingo/lingo-events.cpp | 15 +++++++++++++++ engines/director/lingo/lingo.h | 2 +- 2 files changed, 16 insertions(+), 1 deletion(-) diff --git a/engines/director/lingo/lingo-events.cpp b/engines/director/lingo/lingo-events.cpp index e8f26c137d..7820367b1b 100644 --- a/engines/director/lingo/lingo-events.cpp +++ b/engines/director/lingo/lingo-events.cpp @@ -146,6 +146,21 @@ void Lingo::processInputEvent(LEvent event) { // Movie Script } +void Lingo::runMovieScript(LEvent event) { + /* If more than one movie script handles the same message, Lingo + * searches the movie scripts according to their order in the cast + * window [p.81 of D4 docs] + */ + + for (uint i = 0; i < _scripts[kMovieScript].size(); i++) { + // processEvent(event, + // kMovieScript, + // ?); + // TODO: How do know which script handles the message? + } + debugC(3, kDebugLingoExec, "STUB: processEvent(event, kMovieScript, ?)"); +} + void Lingo::processFrameEvent(LEvent event) { // Primary Event handler // Score Script diff --git a/engines/director/lingo/lingo.h b/engines/director/lingo/lingo.h index acb086ad50..c17473f4ea 100644 --- a/engines/director/lingo/lingo.h +++ b/engines/director/lingo/lingo.h @@ -197,7 +197,7 @@ private: void processInputEvent(LEvent event); void processFrameEvent(LEvent event); void processGenericEvent(LEvent event); - + void runMovieScript(LEvent event); public: ScriptType event2script(LEvent ev); Symbol *getHandler(Common::String &name); -- cgit v1.2.3