1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
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
|