diff options
author | Clyne Sullivan <tullivan99@gmail.com> | 2015-12-21 08:46:35 -0500 |
---|---|---|
committer | Clyne Sullivan <tullivan99@gmail.com> | 2015-12-21 08:46:35 -0500 |
commit | 272a152b54a198a84f122ab8bedb1019708b7008 (patch) | |
tree | c47419145a1b03bc6b6a58ea2983a0819cb972e6 /include/common.h | |
parent | 0b9561febb7677de8792ba0feb056139ba7c94ea (diff) |
pages, quests
Diffstat (limited to 'include/common.h')
-rw-r--r-- | include/common.h | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/include/common.h b/include/common.h index 08ec73f..038bf42 100644 --- a/include/common.h +++ b/include/common.h @@ -142,6 +142,23 @@ extern vec2 offset; extern unsigned int loops; /** + * This class contains a string for identification and a value. It can be used to + * save certain events for and decisions so that they can be recalled later. + */ + +class Condition { +private: + char *id; + void *value; +public: + Condition(const char *_id,void *val); + ~Condition(); + + bool sameID(const char *s); + void *getValue(void); +}; + +/** * Prints a formatted debug message to the console, along with the callee's file and line * number. */ |