summaryrefslogtreecommitdiffstats
path: root/engine/include
diff options
context:
space:
mode:
authorancarola <raffaele.ancarola@epfl.ch>2019-01-19 20:31:46 +0100
committerancarola <raffaele.ancarola@epfl.ch>2019-01-19 20:31:46 +0100
commitba86c8245484279ed7e78912b1ecd9ff4ac82e1e (patch)
tree7f3a04a92b862c4d145f2e79b87d524f98b54eed /engine/include
parentTest two completed successfully (diff)
downloadflatland-ba86c8245484279ed7e78912b1ecd9ff4ac82e1e.tar.gz
flatland-ba86c8245484279ed7e78912b1ecd9ff4ac82e1e.zip
minor fixes
Diffstat (limited to 'engine/include')
-rw-r--r--engine/include/.flatexception.h.swpbin0 -> 12288 bytes
-rw-r--r--engine/include/.flatwindow.h.swpbin0 -> 12288 bytes
-rw-r--r--engine/include/exceptions/forcequit.h11
-rw-r--r--engine/include/flatexception.h22
4 files changed, 33 insertions, 0 deletions
diff --git a/engine/include/.flatexception.h.swp b/engine/include/.flatexception.h.swp
new file mode 100644
index 0000000..4189a06
--- /dev/null
+++ b/engine/include/.flatexception.h.swp
Binary files differ
diff --git a/engine/include/.flatwindow.h.swp b/engine/include/.flatwindow.h.swp
new file mode 100644
index 0000000..fd85b59
--- /dev/null
+++ b/engine/include/.flatwindow.h.swp
Binary files differ
diff --git a/engine/include/exceptions/forcequit.h b/engine/include/exceptions/forcequit.h
new file mode 100644
index 0000000..7b2b324
--- /dev/null
+++ b/engine/include/exceptions/forcequit.h
@@ -0,0 +1,11 @@
+#ifndef __FORCE_QUIT_H__
+#define __FORCE_QUIT_H__
+
+struct ForceQuit
+{
+ const char * reason;
+
+ ForceQuit(const char *reason) : reason(reason) {}
+};
+
+#endif
diff --git a/engine/include/flatexception.h b/engine/include/flatexception.h
new file mode 100644
index 0000000..47eb272
--- /dev/null
+++ b/engine/include/flatexception.h
@@ -0,0 +1,22 @@
+#ifndef __FLAT_ERROR_H__
+#define __FLAT_ERROR_H__
+
+#include <exception>
+
+class FlatException : public std::exception
+{
+ const char * error;
+
+protected:
+
+ virtual const char * specific() const = 0;
+
+public:
+
+ FlatException(const char* error);
+ virtual ~FlatException();
+
+ virtual const char* what() const throw() override;
+};
+
+#endif