aboutsummaryrefslogtreecommitdiff
path: root/engines/draci/script.h
diff options
context:
space:
mode:
Diffstat (limited to 'engines/draci/script.h')
-rw-r--r--engines/draci/script.h24
1 files changed, 13 insertions, 11 deletions
diff --git a/engines/draci/script.h b/engines/draci/script.h
index d6d0735b77..3d5880575d 100644
--- a/engines/draci/script.h
+++ b/engines/draci/script.h
@@ -27,31 +27,33 @@
#define DRACI_SCRIPT_H
#include "common/array.h"
-#include "common/str.h"
#include "common/stream.h"
-namespace Draci {
-
-/** The maximum number of parameters for a GPL command */
-const int kMaxParams = 3;
+namespace Common {
+ class MemoryReadStream;
+}
-class DraciEngine;
-class Script;
+namespace Draci {
enum {
+ /** The maximum number of parameters for a GPL command */
+ kMaxParams = 3,
+
kNumCommands = 55
};
+class DraciEngine;
+class Script;
+
typedef void (Script::*GPLHandler)(const Common::Array<int> &);
typedef int (Script::*GPLOperatorHandler)(int, int) const;
typedef int (Script::*GPLFunctionHandler)(int) const;
/**
- * Represents a single command in the GPL scripting language bytecode.
- * Each command is represented in the bytecode by a command number and a
- * subnumber.
+ * Represents a single command in the GPL scripting language bytecode.
+ * Each command is represented in the bytecode by a command number and a
+ * subnumber.
*/
-
enum GPL2ParameterType {
kGPL2Num = 1,
kGPL2Str = 2,