GAMESAVE.H 2.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596
  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. #ifndef _GAMESAVE_H
  62. #define _GAMESAVE_H
  63. #define NUM_SHAREWARE_LEVELS 7
  64. #define NUM_REGISTERED_LEVELS 23
  65. extern char *Shareware_level_names[NUM_SHAREWARE_LEVELS];
  66. extern char *Registered_level_names[NUM_REGISTERED_LEVELS];
  67. void LoadGame(void);
  68. void SaveGame(void);
  69. void get_level_name(void);
  70. //extern int load_game(char *filename);
  71. //extern int save_game(char *filename);
  72. extern int load_level(char *filename);
  73. extern int save_level(char *filename);
  74. //called in place of load_game() to only load the .min data
  75. extern load_mine_only(char * filename);
  76. extern char Gamesave_current_filename[];
  77. extern int Gamesave_num_org_robots;
  78. // In dumpmine.c
  79. extern void write_game_text_file(char *filename);
  80. extern int Errors_in_mine;
  81. #endif