Skip to content

Commit

Permalink
ZVISION: New data types for script files and puzzle reference.
Browse files Browse the repository at this point in the history
  • Loading branch information
Marisa-Chan committed Oct 24, 2013
1 parent 3e51ed6 commit 803ff02
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions engines/zvision/script_manager.h
Expand Up @@ -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
Expand Down

0 comments on commit 803ff02

Please sign in to comment.