From 803ff02136ddc102084094430aabc366192afe99 Mon Sep 17 00:00:00 2001 From: Marisa-Chan Date: Thu, 24 Oct 2013 22:25:34 +0000 Subject: [PATCH] ZVISION: New data types for script files and puzzle reference. --- engines/zvision/script_manager.h | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/engines/zvision/script_manager.h b/engines/zvision/script_manager.h index 767919ef0ef7..6dd2190cf1e2 100644 --- a/engines/zvision/script_manager.h +++ b/engines/zvision/script_manager.h @@ -119,6 +119,24 @@ class ScriptManager { 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