diff options
author | Marisa-Chan | 2013-11-01 16:55:19 +0700 |
---|---|---|
committer | Marisa-Chan | 2013-11-01 16:55:19 +0700 |
commit | be93d7d67dcea18532917a6c1bd6004665973f4f (patch) | |
tree | f37bdd49994c7b895d2e26f0c7563df80e801a7e /engines/zvision/actions.cpp | |
parent | e1df572ab848f64826fc5cb4a0f22ccddd135871 (diff) | |
download | scummvm-rg350-be93d7d67dcea18532917a6c1bd6004665973f4f.tar.gz scummvm-rg350-be93d7d67dcea18532917a6c1bd6004665973f4f.tar.bz2 scummvm-rg350-be93d7d67dcea18532917a6c1bd6004665973f4f.zip |
ZVISION: Implement ActionStop.
Diffstat (limited to 'engines/zvision/actions.cpp')
-rw-r--r-- | engines/zvision/actions.cpp | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/engines/zvision/actions.cpp b/engines/zvision/actions.cpp index 2a79500427..06ceea2573 100644 --- a/engines/zvision/actions.cpp +++ b/engines/zvision/actions.cpp @@ -409,6 +409,21 @@ bool ActionSetScreen::execute() { return true; } +////////////////////////////////////////////////////////////////////////////// +// ActionStop +////////////////////////////////////////////////////////////////////////////// + +ActionStop::ActionStop(ZVision *engine, const Common::String &line) : + ResultAction(engine) { + _key = 0; + sscanf(line.c_str(), "%*[^(](%u)", &_key); +} + +bool ActionStop::execute() { + _engine->getScriptManager()->stopSideFx(_key); + return true; +} + ////////////////////////////////////////////////////////////////////////////// // ActionStreamVideo |