1 /* $Id: playsave.h,v 1.3 2004-08-28 23:17:45 schaffner Exp $ */
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.
17 * Header for playsave.c
25 #define N_SAVE_SLOTS 10
26 #define GAME_NAME_LEN 25 // +1 for terminating zero = 26
32 extern int Default_leveling_on;
34 // update the player's highest level. returns errno (0 == no error)
35 int update_player_file();
37 // Used to save kconfig values to disk.
38 int write_player_file();
40 int new_player_config();
42 int read_player_file();
44 // set a new highest level for player for this mission
45 void set_highest_level(int levelnum);
47 // gets the player's highest level from the file for this mission
48 int get_highest_level(void);
50 #endif /* _PLAYSAVE_H */