aboutsummaryrefslogtreecommitdiffstats
path: root/include/common.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/common.h')
-rw-r--r--include/common.h17
1 files changed, 17 insertions, 0 deletions
diff --git a/include/common.h b/include/common.h
index 207b95f..0c4d700 100644
--- a/include/common.h
+++ b/include/common.h
@@ -151,6 +151,23 @@ extern unsigned int loops;
extern GLuint shaderProgram;
/**
+ * 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.
*/