diff options
author | Tobia Tesan | 2017-06-21 10:19:28 +0200 |
---|---|---|
committer | Eugene Sandulenko | 2017-07-05 08:35:33 +0200 |
commit | 38db7dfafedb51d0c98cadde7df746a429a663c3 (patch) | |
tree | 8ddc9f3e3b4c676a61768a59ed9cf3f320deda7d | |
parent | 252c890bf5c60a451354cae17e6a9f90fe4a7ef6 (diff) | |
download | scummvm-rg350-38db7dfafedb51d0c98cadde7df746a429a663c3.tar.gz scummvm-rg350-38db7dfafedb51d0c98cadde7df746a429a663c3.tar.bz2 scummvm-rg350-38db7dfafedb51d0c98cadde7df746a429a663c3.zip |
DIRECTOR: Add runMovieScript
-rw-r--r-- | engines/director/lingo/lingo-events.cpp | 15 | ||||
-rw-r--r-- | engines/director/lingo/lingo.h | 2 |
2 files changed, 16 insertions, 1 deletions
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); |