Created
July 9, 2013 18:03
-
-
Save RichieSams/5959662 to your computer and use it in GitHub Desktop.
Structure of Puzzle in ZEngine
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** Criteria for a Puzzle result to be fired */ | |
struct Criteria { | |
/** The key of a global state */ | |
uint32 key; | |
/** | |
* What we're comparing the value of the global state against | |
* This can either be a pure value or it can be the key of another global state | |
*/ | |
uint32 argument; | |
/** How to do the comparison */ | |
CriteriaOperator criteriaOperator; | |
/** Whether 'argument' is the id of a global state (true) or a pure value (false) */ | |
bool isArgumentAnId; | |
}; | |
struct Puzzle { | |
uint32 key; | |
Common::List<Criteria> criteriaList; | |
Common::List<ResultAction *> resultActions; | |
byte flags; | |
}; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment