]> icculus.org git repositories - btb/d2x.git/blob - main/gamesave.h
added FreeBSD defs
[btb/d2x.git] / main / gamesave.h
1 /* $Id: gamesave.h,v 1.3 2003-10-10 09:36:35 btb Exp $ */
2 /*
3 THE COMPUTER CODE CONTAINED HEREIN IS THE SOLE PROPERTY OF PARALLAX
4 SOFTWARE CORPORATION ("PARALLAX").  PARALLAX, IN DISTRIBUTING THE CODE TO
5 END-USERS, AND SUBJECT TO ALL OF THE TERMS AND CONDITIONS HEREIN, GRANTS A
6 ROYALTY-FREE, PERPETUAL LICENSE TO SUCH END-USERS FOR USE BY SUCH END-USERS
7 IN USING, DISPLAYING,  AND CREATING DERIVATIVE WORKS THEREOF, SO LONG AS
8 SUCH USE, DISPLAY OR CREATION IS FOR NON-COMMERCIAL, ROYALTY OR REVENUE
9 FREE PURPOSES.  IN NO EVENT SHALL THE END-USER USE THE COMPUTER CODE
10 CONTAINED HEREIN FOR REVENUE-BEARING PURPOSES.  THE END-USER UNDERSTANDS
11 AND AGREES TO THE TERMS HEREIN AND ACCEPTS THE SAME BY USE OF THIS FILE.
12 COPYRIGHT 1993-1999 PARALLAX SOFTWARE CORPORATION.  ALL RIGHTS RESERVED.
13 */
14
15 /*
16  *
17  * Headers for gamesave.c
18  *
19  * Old Log:
20  * Revision 1.1  1995/05/16  15:57:10  allender
21  * Initial revision
22  *
23  * Revision 2.0  1995/02/27  11:30:25  john
24  * New version 2.0, which has no anonymous unions, builds with
25  * Watcom 10.0, and doesn't require parsing BITMAPS.TBL.
26  *
27  * Revision 1.11  1994/11/23  12:19:32  mike
28  * detail level menu.
29  *
30  * Revision 1.10  1994/10/20  12:47:30  matt
31  * Replace old save files (MIN/SAV/HOT) with new LVL files
32  *
33  * Revision 1.9  1994/09/27  17:08:47  mike
34  * Message boxes when you load bogus mines.
35  *
36  * Revision 1.8  1994/09/27  15:43:05  mike
37  * Prototype write_game_text.
38  *
39  * Revision 1.7  1994/09/14  15:46:39  matt
40  * Added function load_mine_only()
41  *
42  * Revision 1.6  1994/07/22  12:36:28  matt
43  * Cleaned up editor/game interactions some more.
44  *
45  * Revision 1.5  1994/07/20  13:38:14  matt
46  * Added get_level_name() prototype
47  *
48  * Revision 1.4  1994/06/20  22:19:41  john
49  * Added Gamesave_num_org_robots.
50  *
51  * Revision 1.3  1994/06/14  11:32:49  john
52  * Made Newdemo record & restore the current mine.
53  *
54  * Revision 1.2  1994/05/14  17:16:25  matt
55  * Got rid of externs in source (non-header) files
56  *
57  * Revision 1.1  1994/05/14  16:01:26  matt
58  * Initial revision
59  *
60  *
61  */
62
63
64 #ifndef _GAMESAVE_H
65 #define _GAMESAVE_H
66
67 void LoadGame(void);
68 void SaveGame(void);
69 void get_level_name(void);
70
71 extern int load_level(char *filename);
72 extern int save_level(char *filename);
73
74 // called in place of load_game() to only load the .min data
75 extern void load_mine_only(char * filename);
76
77 extern char Gamesave_current_filename[];
78
79 extern int Gamesave_current_version;
80
81 extern int Gamesave_num_org_robots;
82
83 // In dumpmine.c
84 extern void write_game_text_file(char *filename);
85
86 extern int Errors_in_mine;
87
88 #endif /* _GAMESAVE_H */