aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarisa-Chan2013-10-24 22:25:34 +0000
committerMarisa-Chan2013-10-24 22:25:34 +0000
commit803ff02136ddc102084094430aabc366192afe99 (patch)
tree2d6d72de18c75666717d5c9c6b93afc3a10861a5
parent3e51ed6a785ffb1871ffdbfff6aaad309959a1ee (diff)
downloadscummvm-rg350-803ff02136ddc102084094430aabc366192afe99.tar.gz
scummvm-rg350-803ff02136ddc102084094430aabc366192afe99.tar.bz2
scummvm-rg350-803ff02136ddc102084094430aabc366192afe99.zip
ZVISION: New data types for script files and puzzle reference.
-rw-r--r--engines/zvision/script_manager.h18
1 files changed, 18 insertions, 0 deletions
diff --git a/engines/zvision/script_manager.h b/engines/zvision/script_manager.h
index 767919ef0e..6dd2190cf1 100644
--- a/engines/zvision/script_manager.h
+++ b/engines/zvision/script_manager.h
@@ -119,6 +119,24 @@ public:
private:
ZVision *_engine;
+
+ struct script_scope {
+ uint32 proc_count;
+
+ PuzzleList *scope_queue; // For adding puzzles to queue
+ PuzzleList *exec_queue; // Switch to it when execute
+ PuzzleList _priv_queue_one;
+ PuzzleList _priv_queue_two;
+
+ PuzzleList _puzzles;
+ ControlList _controls;
+ };
+
+ struct puzzle_ref {
+ Puzzle *puz;
+ script_scope *scope;
+ };
+
/**
* Holds the global state variable. Do NOT directly modify this. Use the accessors and
* mutators getStateValue() and setStateValue(). This ensures that Puzzles that reference a