summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/end.h
diff options
context:
space:
mode:
authorNicholas Feinberg <pleasingfung@gmail.com>2014-07-28 00:03:07 -0700
committerNicholas Feinberg <pleasingfung@gmail.com>2014-07-28 00:03:07 -0700
commit0cf3be7fc50ee2a4b594955e8c93fc3438213e7a (patch)
tree2c79555d95c3ff642f586c07c9646eb0d6206c45 /crawl-ref/source/end.h
parentcb645b5eded55d35986b82356164bcc9e8542cd0 (diff)
downloadcrawl-ref-0cf3be7fc50ee2a4b594955e8c93fc3438213e7a.tar.gz
crawl-ref-0cf3be7fc50ee2a4b594955e8c93fc3438213e7a.zip
Add end.cc
Diffstat (limited to 'crawl-ref/source/end.h')
-rw-r--r--crawl-ref/source/end.h22
1 files changed, 22 insertions, 0 deletions
diff --git a/crawl-ref/source/end.h b/crawl-ref/source/end.h
new file mode 100644
index 0000000000..27d1aed529
--- /dev/null
+++ b/crawl-ref/source/end.h
@@ -0,0 +1,22 @@
+/**
+ * @file
+ * @brief Handle shutdown.
+ **/
+
+#ifndef END_H
+#define END_H
+
+#include "hiscores.h" // scorefile_entry
+
+NORETURN void end(int exit_code, bool print_err = false, PRINTF(2, = NULL));
+NORETURN void end_game(scorefile_entry &se);
+NORETURN void game_ended();
+NORETURN void game_ended_with_error(const string &message);
+NORETURN void screen_end_game(string text);
+void cio_cleanup();
+
+class game_ended_condition : public exception
+{
+};
+
+#endif