diff options
author | Filippos Karapetis | 2010-06-27 21:00:34 +0000 |
---|---|---|
committer | Filippos Karapetis | 2010-06-27 21:00:34 +0000 |
commit | 2843feeb9a4d031eaacc896da0045877fd048004 (patch) | |
tree | 37fad70c3b42d642ab3b2010067e18e78d2720f9 /engines/sci/engine/script.h | |
parent | 5f9cc9e8f8272fd2e07c9b6cce8bcc541772d17f (diff) | |
download | scummvm-rg350-2843feeb9a4d031eaacc896da0045877fd048004.tar.gz scummvm-rg350-2843feeb9a4d031eaacc896da0045877fd048004.tar.bz2 scummvm-rg350-2843feeb9a4d031eaacc896da0045877fd048004.zip |
SCI: Made the code for initializing script classes, objects and locals part of the Script class
svn-id: r50398
Diffstat (limited to 'engines/sci/engine/script.h')
-rw-r--r-- | engines/sci/engine/script.h | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/engines/sci/engine/script.h b/engines/sci/engine/script.h index 62d2228c9a..cc3c0263e8 100644 --- a/engines/sci/engine/script.h +++ b/engines/sci/engine/script.h @@ -140,6 +140,30 @@ public: */ void relocate(reg_t block); + /** + * Initializes the script's local variables + * @param segMan A reference to the segment manager + */ + void initialiseLocals(SegManager *segMan); + + /** + * Adds the script's classes to the segment manager's class table + * @param segMan A reference to the segment manager + */ + void initialiseClasses(SegManager *segMan); + + /** + * Initializes the script's objects (SCI0) + * @param segMan A reference to the segment manager + */ + void initialiseObjectsSci0(SegManager *segMan); + + /** + * Initializes the script's objects (SCI1.1+) + * @param segMan A reference to the segment manager + */ + void initialiseObjectsSci11(SegManager *segMan); + private: bool relocateLocal(SegmentId segment, int location); |