diff options
author | Sven Hesse | 2009-06-23 01:23:14 +0000 |
---|---|---|
committer | Sven Hesse | 2009-06-23 01:23:14 +0000 |
commit | fcddd5c69a2b7f6496d76af09786c10db042fe7a (patch) | |
tree | 69860ee17d6c8492ceaded634d9f66421d9533c1 /engines/gob/script.h | |
parent | c967db5fa0f523f685991e87bbf7d3510ac45a98 (diff) | |
download | scummvm-rg350-fcddd5c69a2b7f6496d76af09786c10db042fe7a.tar.gz scummvm-rg350-fcddd5c69a2b7f6496d76af09786c10db042fe7a.tar.bz2 scummvm-rg350-fcddd5c69a2b7f6496d76af09786c10db042fe7a.zip |
Replacing the 2 offset functions by a generic Script::getFunctionOffset()
svn-id: r41797
Diffstat (limited to 'engines/gob/script.h')
-rw-r--r-- | engines/gob/script.h | 11 |
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; |