1 // ------------------------------------
3 // ------------------------------------
4 // Sistema de salva / carga de juego
6 // En memoria de mi querido padre
7 // Copyright (c) 2002, Kronoman
8 // ------------------------------------
17 // cantidad de slots de savegame (el dialogo tiene soporte para 7)
18 #define SAVE_GAME_SLOTS 7
20 // Estructura de salvado del juego a disco
21 // No puedo salvar directamente el JUGADOR, porque tiene punteros y boludeces que no sirven
22 typedef struct SAVE_GAME_ST
24 char desc
[41]; // descripcion del savegame
25 int es_valido
; // el savegame es valido? 0 = NO, != 0 = si
26 int vida
; /* vida que le queda, energia */
27 int dinero
; /* dinero (puntos) que tiene */
28 int arma
[MAX_ARM_CLASS
]; /* armamentos que tiene (<= 0 no tiene el arma, > 0 posee el arma, cantidad de balas que tiene) */
29 int arma_actual
; /* arma seleccionada */
30 int bombas
; /* cantidad de bombas que le quedan */
31 int nivel_actual
; // nivel que va jugando
32 int nivel_de_dificultad
; // nivel de dificultad
36 void salvar_juego_menu();
37 int cargar_juego_menu();