From 272a152b54a198a84f122ab8bedb1019708b7008 Mon Sep 17 00:00:00 2001 From: Clyne Sullivan Date: Mon, 21 Dec 2015 08:46:35 -0500 Subject: pages, quests --- include/common.h | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) (limited to 'include/common.h') diff --git a/include/common.h b/include/common.h index 08ec73f..038bf42 100644 --- a/include/common.h +++ b/include/common.h @@ -141,6 +141,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. -- cgit v1.2.3