#include <stdio.h>#include <stdlib.h>#include <math.h>#include <string.h>#include "mono.h"#include "inferno.h"#include "segment.h"#include "textures.h"#include "wall.h"#include "object.h"#include "gamemine.h"#include "error.h"#include "gameseg.h"#include "switch.h"#include "game.h"#include "newmenu.h"#include "cfile.h"#include "fuelcen.h"#include "hash.h"#include "key.h"#include "piggy.h"#include "player.h"#include "cntrlcen.h"#include "morph.h"#include "weapon.h"#include "render.h"#include "gameseq.h"#include "gauges.h"#include "newdemo.h"#include "automap.h"#include "paging.h"#include "titles.h"#include "text.h"#include "mission.h"#include "pcx.h"#include "u_mem.h"#include "network.h"#include "args.h"#include "strutil.h"#include "gamefont.h"Defines | |
| #define | STATE_VERSION 7 |
| #define | STATE_COMPATIBLE_VERSION 6 |
| #define | NUM_SAVES 10 |
| #define | THUMBNAIL_W 100 |
| #define | THUMBNAIL_H 50 |
| #define | DESC_LENGTH 20 |
Functions | |
| int | ai_save_state (FILE *fp) |
| int | ai_restore_state (FILE *fp) |
| void | multi_initiate_save_game () |
| void | multi_initiate_restore_game () |
| void | do_lunacy_on (void) |
| void | do_lunacy_off (void) |
| int | state_save_all_sub (char *filename, char *desc, int between_levels) |
| int | state_restore_all_sub (char *filename, int multi) |
| void | state_callback (int nitems, newmenu_item *items, int *last_key, int citem) |
| void | rpad_string (char *string, int max_chars) |
| int | state_get_savegame_filename (char *fname, char *dsc, int multi, char *caption) |
| int | state_get_save_file (char *fname, char *dsc, int multi) |
| int | state_get_restore_file (char *fname, int multi) |
| int | state_save_old_game (int slotnum, char *sg_name, player *sg_player, int sg_difficulty_level, int sg_primary_weapon, int sg_secondary_weapon, int sg_next_level_num) |
| int | state_save_all (int between_levels) |
| int | state_restore_all (int in_game) |
Variables | |
| int | Do_appearance_effect |
| fix | Fusion_next_sound_time |
| int | Laser_rapid_fire |
| int | Ugly_robot_cheat |
| int | Ugly_robot_texture |
| int | Physics_cheat_flag |
| int | Lunacy |
| int | sc_last_item = 0 |
| grs_bitmap * | sc_bmp [NUM_SAVES] |
| char | dgss_id [4] = "DGSS" |
| int | state_default_item = 0 |
| uint | state_game_id |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
||||||||||||
|
|
|
||||||||||||||||||||
|
|
|
||||||||||||
|
|
|
||||||||||||||||
|
|
|
||||||||||||||||||||
|
|
|
|
|
|
||||||||||||
|
|
|
|
|
|
||||||||||||||||
|
|
|
||||||||||||||||||||||||||||||||
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1.4.6