aboutsummaryrefslogtreecommitdiff
path: root/engines/gob/script.h
diff options
context:
space:
mode:
Diffstat (limited to 'engines/gob/script.h')
-rw-r--r--engines/gob/script.h11
1 files changed, 7 insertions, 4 deletions
diff --git a/engines/gob/script.h b/engines/gob/script.h
index a1200a7ce4..f2f0571a3a 100644
--- a/engines/gob/script.h
+++ b/engines/gob/script.h
@@ -36,6 +36,11 @@ class Expression;
class Script {
public:
+ enum Function {
+ kFunctionStart = 0,
+ kFunctionCenter = 13
+ };
+
Script(GobEngine *vm);
~Script();
@@ -126,8 +131,8 @@ public:
uint8 getImFileNumber () const;
uint8 getExFileNumber () const;
uint8 getCommunHandling () const;
- uint32 getStartOffset () const;
- uint32 getCenterOffset () const;
+
+ uint16 getFunctionOffset (uint8 function) const;
static uint32 getVariablesCount(const char *fileName, GobEngine *vm);
@@ -158,8 +163,6 @@ private:
uint8 _imFileNumber;
uint8 _exFileNumber;
uint8 _communHandling;
- uint32 _startOffset;
- uint16 _centerOffset;
Common::Stack<CallEntry> _callStack;