]> icculus.org git repositories - btb/d2x.git/blob - main/playsave.h
remove rcs tags
[btb/d2x.git] / main / playsave.h
1 /*
2 THE COMPUTER CODE CONTAINED HEREIN IS THE SOLE PROPERTY OF PARALLAX
3 SOFTWARE CORPORATION ("PARALLAX").  PARALLAX, IN DISTRIBUTING THE CODE TO
4 END-USERS, AND SUBJECT TO ALL OF THE TERMS AND CONDITIONS HEREIN, GRANTS A
5 ROYALTY-FREE, PERPETUAL LICENSE TO SUCH END-USERS FOR USE BY SUCH END-USERS
6 IN USING, DISPLAYING,  AND CREATING DERIVATIVE WORKS THEREOF, SO LONG AS
7 SUCH USE, DISPLAY OR CREATION IS FOR NON-COMMERCIAL, ROYALTY OR REVENUE
8 FREE PURPOSES.  IN NO EVENT SHALL THE END-USER USE THE COMPUTER CODE
9 CONTAINED HEREIN FOR REVENUE-BEARING PURPOSES.  THE END-USER UNDERSTANDS
10 AND AGREES TO THE TERMS HEREIN AND ACCEPTS THE SAME BY USE OF THIS FILE.
11 COPYRIGHT 1993-1999 PARALLAX SOFTWARE CORPORATION.  ALL RIGHTS RESERVED.
12 */
13
14 /*
15  *
16  * Header for playsave.c
17  *
18  */
19
20
21 #ifndef _PLAYSAVE_H
22 #define _PLAYSAVE_H
23
24 #define N_SAVE_SLOTS    10
25 #define GAME_NAME_LEN   25      // +1 for terminating zero = 26
26
27 #ifndef EZERO
28 #define EZERO 0
29 #endif
30
31 #ifndef MACINTOSH
32 #define PLAYER_DIR ""
33 #else
34 #define PLAYER_DIR ":Players:"
35 #endif
36
37 extern int Default_leveling_on;
38
39 // update the player's highest level.  returns errno (0 == no error)
40 int update_player_file();
41
42 // Used to save kconfig values to disk.
43 int write_player_file();
44
45 int new_player_config();
46
47 int read_player_file();
48
49 // set a new highest level for player for this mission
50 void set_highest_level(int levelnum);
51
52 // gets the player's highest level from the file for this mission
53 int get_highest_level(void);
54
55 #endif /* _PLAYSAVE_H */