STATE.H 2.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475
  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/state.h $
  15. * $Revision: 2.1 $
  16. * $Author: john $
  17. * $Date: 1995/03/27 21:40:35 $
  18. *
  19. * Prototypes for state saving functions.
  20. *
  21. * $Log: state.h $
  22. * Revision 2.1 1995/03/27 21:40:35 john
  23. * Added code to verify that the proper multi save file
  24. * is used when restoring a network game.
  25. *
  26. * Revision 2.0 1995/02/27 11:28:44 john
  27. * New version 2.0, which has no anonymous unions, builds with
  28. * Watcom 10.0, and doesn't require parsing BITMAPS.TBL.
  29. *
  30. * Revision 1.6 1995/02/07 10:54:05 john
  31. * *** empty log message ***
  32. *
  33. * Revision 1.5 1995/02/03 10:58:12 john
  34. * Added code to save shareware style saved games into new format...
  35. * Also, made new player file format not have the saved game array in it.
  36. *
  37. * Revision 1.4 1995/01/19 17:00:51 john
  38. * Made save game work between levels.
  39. *
  40. * Revision 1.3 1995/01/05 11:51:44 john
  41. * Added better Abort game menu.
  42. * Made save state return success or nopt.
  43. *
  44. * Revision 1.2 1994/12/29 15:26:39 john
  45. * Put in hooks for saving/restoring game state.
  46. *
  47. * Revision 1.1 1994/12/29 15:15:47 john
  48. * Initial revision
  49. *
  50. *
  51. */
  52. #ifndef _STATE_H
  53. #define _STATE_H
  54. int state_save_all(int between_levels);
  55. int state_restore_all(int in_game );
  56. extern int state_save_old_game(int slotnum, char * sg_name, player * sg_player,
  57. int sg_difficulty_level, int sg_primary_weapon,
  58. int sg_secondary_weapon, int sg_next_level_num );
  59. int state_save_all_sub(char *filename, char *desc, int between_levels);
  60. int state_restore_all_sub(char *filename, int multi);
  61. extern uint state_game_id;
  62. int state_get_save_file(char * fname, char * dsc, int multi );
  63. int state_get_restore_file(char * fname, int multi );
  64. #endif
  65.