summaryrefslogtreecommitdiffstats
path: root/trunk/source/files.h
diff options
context:
space:
mode:
authorpeterb12 <peterb12@c06c8d41-db1a-0410-9941-cceddc491573>2005-07-21 02:34:44 +0000
committerpeterb12 <peterb12@c06c8d41-db1a-0410-9941-cceddc491573>2005-07-21 02:34:44 +0000
commit673bdae75485d14f759af597c3c62b99601f9a43 (patch)
tree368103f29fe0ce5dcf98060d9b5faa04590085fb /trunk/source/files.h
parent7e900be770db24b0405fd2162491c405a425873e (diff)
downloadcrawl-ref-673bdae75485d14f759af597c3c62b99601f9a43.tar.gz
crawl-ref-673bdae75485d14f759af597c3c62b99601f9a43.zip
Initial revision
git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@3 c06c8d41-db1a-0410-9941-cceddc491573
Diffstat (limited to 'trunk/source/files.h')
-rw-r--r--trunk/source/files.h67
1 files changed, 67 insertions, 0 deletions
diff --git a/trunk/source/files.h b/trunk/source/files.h
new file mode 100644
index 0000000000..d0b2c68362
--- /dev/null
+++ b/trunk/source/files.h
@@ -0,0 +1,67 @@
+/*
+ * File: files.cc
+ * Summary: Functions used to save and load levels/games.
+ * Written by: Linley Henzell and Alexey Guzeev
+ *
+ * Change History (most recent first):
+ *
+ * <1> -/--/-- LRH Created
+ */
+
+
+#ifndef FILES_H
+#define FILES_H
+
+#include "FixAry.h"
+
+
+// referenced in files - newgame - ouch - overmap:
+#define MAX_LEVELS 50
+// referenced in files - newgame - ouch - overmap:
+#define MAX_BRANCHES 30 // there must be a way this can be extracted from other data
+
+
+// referenced in files - newgame - ouch:
+extern FixedArray<bool, MAX_LEVELS, MAX_BRANCHES> tmp_file_pairs;
+
+// last updated 12may2000 {dlb}
+/* ***********************************************************************
+ * called from: acr - misc
+ * *********************************************************************** */
+#if 0
+void load( unsigned char stair_taken, bool moving_level,
+ bool was_a_labyrinth, char old_level, bool want_followers,
+ bool is_new_game, char where_were_you2 );
+#endif
+
+void load( unsigned char stair_taken, int load_mode, bool was_a_labyrinth,
+ char old_level, char where_were_you2 );
+
+// last updated 12may2000 {dlb}
+/* ***********************************************************************
+ * called from: acr - libmac - misc
+ * *********************************************************************** */
+void save_game(bool leave_game);
+
+
+// last updated 12may2000 {dlb}
+/* ***********************************************************************
+ * called from: acr
+ * *********************************************************************** */
+void restore_game(void);
+
+
+// last updated 12may2000 {dlb}
+/* ***********************************************************************
+ * called from: ouch
+ * *********************************************************************** */
+void save_ghost( bool force = false );
+
+// last updated 12may2000 {dlb}
+/* ***********************************************************************
+ * called from: files hiscores
+ * *********************************************************************** */
+void make_filename( char *buf, const char *prefix, int level, int where,
+ bool isLabyrinth, bool isGhost );
+
+#endif