[Scummvm-cvs-logs] SF.net SVN: scummvm:[42184] scummvm/branches/gsoc2009-draci/engines/draci/ script.cpp
dkasak13 at users.sourceforge.net
dkasak13 at users.sourceforge.net
Mon Jul 6 19:27:12 CEST 2009
Revision: 42184
http://scummvm.svn.sourceforge.net/scummvm/?rev=42184&view=rev
Author: dkasak13
Date: 2009-07-06 17:27:12 +0000 (Mon, 06 Jul 2009)
Log Message:
-----------
Implemented Script::play() GPL opcode.
Modified Paths:
--------------
scummvm/branches/gsoc2009-draci/engines/draci/script.cpp
Modified: scummvm/branches/gsoc2009-draci/engines/draci/script.cpp
===================================================================
--- scummvm/branches/gsoc2009-draci/engines/draci/script.cpp 2009-07-06 17:25:34 UTC (rev 42183)
+++ scummvm/branches/gsoc2009-draci/engines/draci/script.cpp 2009-07-06 17:27:12 UTC (rev 42184)
@@ -44,7 +44,7 @@
{ 1, 1, "goto", 1, { 3 }, NULL },
{ 2, 1, "Let", 2, { 3, 4 }, NULL },
{ 3, 1, "if", 2, { 4, 3 }, NULL },
- { 4, 1, "Start", 2, { 3, 2 }, NULL },
+ { 4, 1, "Start", 2, { 3, 2 }, &Script::start },
{ 5, 1, "Load", 2, { 3, 2 }, &Script::load },
{ 5, 2, "StartPlay", 2, { 3, 2 }, NULL },
{ 5, 3, "JustTalk", 0, { 0 }, NULL },
@@ -217,6 +217,15 @@
obj->_seqTab[animID - obj->_idxSeq] = _vm->_game->loadAnimation(animID);
}
+void Script::start(Common::Queue<int> ¶ms) {
+ int objID = params.pop() - 1;
+ int animID = params.pop() - 1;
+
+ GameObject *obj = _vm->_game->getObject(objID);
+
+ _vm->_anims->play(animID);
+}
+
/**
* @brief Evaluates mathematical expressions
* @param reader Stream reader set to the beginning of the expression
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
More information about the Scummvm-git-logs
mailing list