]> icculus.org git repositories - btb/d2x.git/blob - main/playsave.h
Merge branch 'master' into cmd-queue
[btb/d2x.git] / main / playsave.h
1 /* $Id: playsave.h,v 1.3 2004-08-28 23:17:45 schaffner 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  * Header for playsave.c
18  *
19  */
20
21
22 #ifndef _PLAYSAVE_H
23 #define _PLAYSAVE_H
24
25 #define N_SAVE_SLOTS    10
26 #define GAME_NAME_LEN   25      // +1 for terminating zero = 26
27
28 #ifndef EZERO
29 #define EZERO 0
30 #endif
31
32 #ifndef MACINTOSH
33 #define PLAYER_DIR ""
34 #else
35 #define PLAYER_DIR ":Players:"
36 #endif
37
38 extern int Default_leveling_on;
39
40 // update the player's highest level.  returns errno (0 == no error)
41 int update_player_file();
42
43 // Used to save kconfig values to disk.
44 int write_player_file();
45
46 int new_player_config();
47
48 int read_player_file();
49
50 // set a new highest level for player for this mission
51 void set_highest_level(int levelnum);
52
53 // gets the player's highest level from the file for this mission
54 int get_highest_level(void);
55
56 #endif /* _PLAYSAVE_H */