summaryrefslogtreecommitdiffstats
path: root/trunk/source/files.h
diff options
context:
space:
mode:
authordshaligram <dshaligram@c06c8d41-db1a-0410-9941-cceddc491573>2006-08-02 12:54:15 +0000
committerdshaligram <dshaligram@c06c8d41-db1a-0410-9941-cceddc491573>2006-08-02 12:54:15 +0000
commitd5e5340c3926d1cf97f6cba151ffaecb20bfb35f (patch)
treed1faf7d5b27df8f3c523a8dd33357804118e62b1 /trunk/source/files.h
parent7b2204d69f21d7075e4666ee032d7a129081bc4b (diff)
downloadcrawl-ref-d5e5340c3926d1cf97f6cba151ffaecb20bfb35f.tar.gz
crawl-ref-d5e5340c3926d1cf97f6cba151ffaecb20bfb35f.zip
Integrated travel patch as of 20060727
git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@7 c06c8d41-db1a-0410-9941-cceddc491573
Diffstat (limited to 'trunk/source/files.h')
-rw-r--r--trunk/source/files.h27
1 files changed, 26 insertions, 1 deletions
diff --git a/trunk/source/files.h b/trunk/source/files.h
index d0b2c68362..a2d357cac8 100644
--- a/trunk/source/files.h
+++ b/trunk/source/files.h
@@ -13,7 +13,8 @@
#define FILES_H
#include "FixAry.h"
-
+#include <stdio.h>
+#include <string>
// referenced in files - newgame - ouch - overmap:
#define MAX_LEVELS 50
@@ -34,6 +35,13 @@ void load( unsigned char stair_taken, bool moving_level,
bool is_new_game, char where_were_you2 );
#endif
+bool travel_load_map( char branch, int absdepth );
+
+std::string get_savedir_filename(const char *pre, const char *suf,
+ const char *ext);
+
+std::string get_prefs_filename();
+
void load( unsigned char stair_taken, int load_mode, bool was_a_labyrinth,
char old_level, char where_were_you2 );
@@ -64,4 +72,21 @@ void save_ghost( bool force = false );
void make_filename( char *buf, const char *prefix, int level, int where,
bool isLabyrinth, bool isGhost );
+
+void writeShort(FILE *file, short s);
+
+short readShort(FILE *file);
+
+void writeByte(FILE *file, unsigned char byte);
+
+unsigned char readByte(FILE *file);
+
+void writeString(FILE* file, const std::string &s);
+
+std::string readString(FILE *file);
+
+void writeLong(FILE* file, long num);
+
+long readLong(FILE *file);
+
#endif