aboutsummaryrefslogtreecommitdiff
path: root/engines/mohawk/myst_scripts.h
diff options
context:
space:
mode:
authorBastien Bouclet2017-07-22 12:12:02 +0200
committerBastien Bouclet2017-07-22 20:38:56 +0200
commita99397f12667657d2c360695d7243f8541c1cdf3 (patch)
treec8c685fcb92d1eead6fb011c41f842eeaa607756 /engines/mohawk/myst_scripts.h
parent3e99dd8ccc0cda437ed19dcd3048f1e8eaa6c532 (diff)
downloadscummvm-rg350-a99397f12667657d2c360695d7243f8541c1cdf3.tar.gz
scummvm-rg350-a99397f12667657d2c360695d7243f8541c1cdf3.tar.bz2
scummvm-rg350-a99397f12667657d2c360695d7243f8541c1cdf3.zip
MOHAWK: Myst: Improve script execution tracing
Diffstat (limited to 'engines/mohawk/myst_scripts.h')
-rw-r--r--engines/mohawk/myst_scripts.h10
1 files changed, 5 insertions, 5 deletions
diff --git a/engines/mohawk/myst_scripts.h b/engines/mohawk/myst_scripts.h
index 4ae9fb5f14..ec22fecdac 100644
--- a/engines/mohawk/myst_scripts.h
+++ b/engines/mohawk/myst_scripts.h
@@ -33,7 +33,7 @@ namespace Mohawk {
typedef Common::Array<uint16> ArgumentsArray;
-#define DECLARE_OPCODE(x) void x(uint16 op, uint16 var, const ArgumentsArray &args)
+#define DECLARE_OPCODE(x) void x(uint16 var, const ArgumentsArray &args)
class MohawkEngine_Myst;
class MystArea;
@@ -88,8 +88,6 @@ public:
void animatedUpdate(const ArgumentsArray &args, uint16 delay);
- DECLARE_OPCODE(unknown);
-
// Common opcodes
DECLARE_OPCODE(o_toggleVar);
DECLARE_OPCODE(o_setVar);
@@ -100,8 +98,8 @@ public:
DECLARE_OPCODE(o_redrawCard);
DECLARE_OPCODE(o_goToDest);
DECLARE_OPCODE(o_goToDestForward);
- DECLARE_OPCODE(o_goToDestLeft);
DECLARE_OPCODE(o_goToDestRight);
+ DECLARE_OPCODE(o_goToDestLeft);
DECLARE_OPCODE(o_goToDestUp);
DECLARE_OPCODE(o_triggerMovie);
DECLARE_OPCODE(o_toggleVarNoRedraw);
@@ -146,7 +144,7 @@ protected:
MohawkEngine_Myst *_vm;
MystGameState::Globals &_globals;
- typedef void (MystScriptParser::*OpcodeProcMyst)(uint16 op, uint16 var, const ArgumentsArray &args);
+ typedef void (MystScriptParser::*OpcodeProcMyst)(uint16 var, const ArgumentsArray &args);
struct MystOpcode {
MystOpcode(uint16 o, OpcodeProcMyst p, const char *d) : op(o), proc(p), desc(d) {}
@@ -175,6 +173,8 @@ protected:
private:
MystArea *_invokingResource;
int32 _scriptNestingLevel;
+
+ Common::String describeCommand(const MystOpcode &command, uint16 var, const ArgumentsArray &args);
};
template<class T>