aboutsummaryrefslogtreecommitdiff
path: root/engines/zvision/actions.cpp
diff options
context:
space:
mode:
authorMarisa-Chan2013-11-01 16:55:19 +0700
committerMarisa-Chan2013-11-01 16:55:19 +0700
commitbe93d7d67dcea18532917a6c1bd6004665973f4f (patch)
treef37bdd49994c7b895d2e26f0c7563df80e801a7e /engines/zvision/actions.cpp
parente1df572ab848f64826fc5cb4a0f22ccddd135871 (diff)
downloadscummvm-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.cpp15
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