aboutsummaryrefslogtreecommitdiff
path: root/engines/sci/engine/script.h
diff options
context:
space:
mode:
authorFilippos Karapetis2010-06-27 21:00:34 +0000
committerFilippos Karapetis2010-06-27 21:00:34 +0000
commit2843feeb9a4d031eaacc896da0045877fd048004 (patch)
tree37fad70c3b42d642ab3b2010067e18e78d2720f9 /engines/sci/engine/script.h
parent5f9cc9e8f8272fd2e07c9b6cce8bcc541772d17f (diff)
downloadscummvm-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.h24
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);