home *** CD-ROM | disk | FTP | other *** search
/ Amiga ACS 1998 #6 / amigaacscoverdisc1998-061998.iso / games / descent / source / main / gamesave.h < prev    next >
C/C++ Source or Header  |  1998-06-08  |  3KB  |  96 lines

  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-1998 PARALLAX SOFTWARE CORPORATION.  ALL RIGHTS RESERVED.
  12. */
  13. /*
  14.  * $Source: f:/miner/source/main/rcs/gamesave.h $
  15.  * $Revision: 2.0 $
  16.  * $Author: john $
  17.  * $Date: 1995/02/27 11:30:25 $
  18.  * 
  19.  * Headers for gamesave.c
  20.  * 
  21.  * $Log: gamesave.h $
  22.  * Revision 2.0  1995/02/27  11:30:25  john
  23.  * New version 2.0, which has no anonymous unions, builds with
  24.  * Watcom 10.0, and doesn't require parsing BITMAPS.TBL.
  25.  * 
  26.  * Revision 1.11  1994/11/23  12:19:32  mike
  27.  * detail level menu.
  28.  * 
  29.  * Revision 1.10  1994/10/20  12:47:30  matt
  30.  * Replace old save files (MIN/SAV/HOT) with new LVL files
  31.  * 
  32.  * Revision 1.9  1994/09/27  17:08:47  mike
  33.  * Message boxes when you load bogus mines.
  34.  * 
  35.  * Revision 1.8  1994/09/27  15:43:05  mike
  36.  * Prototype write_game_text.
  37.  * 
  38.  * Revision 1.7  1994/09/14  15:46:39  matt
  39.  * Added function load_mine_only()
  40.  * 
  41.  * Revision 1.6  1994/07/22  12:36:28  matt
  42.  * Cleaned up editor/game interactions some more.
  43.  * 
  44.  * Revision 1.5  1994/07/20  13:38:14  matt
  45.  * Added get_level_name() prototype
  46.  * 
  47.  * Revision 1.4  1994/06/20  22:19:41  john
  48.  * Added Gamesave_num_org_robots.
  49.  * 
  50.  * Revision 1.3  1994/06/14  11:32:49  john
  51.  * Made Newdemo record & restore the current mine.
  52.  * 
  53.  * Revision 1.2  1994/05/14  17:16:25  matt
  54.  * Got rid of externs in source (non-header) files
  55.  * 
  56.  * Revision 1.1  1994/05/14  16:01:26  matt
  57.  * Initial revision
  58.  * 
  59.  * 
  60.  */
  61.  
  62.  
  63.  
  64. #ifndef _GAMESAVE_H
  65. #define _GAMESAVE_H
  66.  
  67. #define    NUM_SHAREWARE_LEVELS    7
  68. #define    NUM_REGISTERED_LEVELS    23
  69.  
  70. extern char *Shareware_level_names[NUM_SHAREWARE_LEVELS];
  71. extern char *Registered_level_names[NUM_REGISTERED_LEVELS];
  72.  
  73. void LoadGame(void);
  74. void SaveGame(void);
  75. void get_level_name(void);
  76.  
  77. //extern int load_game(char *filename);
  78. //extern int save_game(char *filename);
  79.  
  80. extern int load_level(char *filename);
  81. extern int save_level(char *filename);
  82.  
  83. //called in place of load_game() to only load the .min data
  84. extern load_mine_only(char * filename);
  85.  
  86. extern char Gamesave_current_filename[];
  87.  
  88. extern int Gamesave_num_org_robots;
  89.  
  90. //    In dumpmine.c
  91. extern void write_game_text_file(char *filename);
  92.  
  93. extern    int    Errors_in_mine;
  94.  
  95. #endif
  96.