#include <stdlib.h>#include <stdio.h>#include <string.h>#include "types.h"#include "timer.h"#include "key.h"#include "gr.h"#include "palette.h"#include "iff.h"#include "pcx.h"#include "u_mem.h"#include "joy.h"#include "mono.h"#include "gamefont.h"#include "cfile.h"#include "error.h"#include "polyobj.h"#include "textures.h"#include "screens.h"#include "multi.h"#include "player.h"#include "digi.h"#include "compbit.h"#include "text.h"#include "kmatrix.h"#include "piggy.h"#include "songs.h"#include "newmenu.h"#include "state.h"#include "gameseq.h"Classes | |
| struct | briefing_screen |
Defines | |
| #define | MAX_BRIEFING_COLORS 7 |
| #define | SHAREWARE_ENDING_FILENAME "ending.tex" |
| #define | BRIEFING_SECRET_NUM 31 |
| #define | BRIEFING_OFFSET_NUM 4 |
| #define | SHAREWARE_ENDING_LEVEL_NUM 0x7f |
| #define | REGISTERED_ENDING_LEVEL_NUM 0x7e |
| #define | Briefing_screens_LH ((SWIDTH >= 640 && cfexist(DESCENT_DATA_PATH "brief01h.pcx"))?Briefing_screens_h:Briefing_screens) |
| #define | MAX_BRIEFING_SCREEN (sizeof(Briefing_screens) / sizeof(Briefing_screens[0])) |
| #define | EXIT_DOOR_MAX 14 |
| #define | OTHER_THING_MAX 10 |
| #define | DOOR_DIV_INIT 6 |
| #define | KEY_DELAY_DEFAULT ((F1_0*28)/1000) |
Functions | |
| void | title_save_game () |
| static int | rescale_x (int x) |
| static int | rescale_y (int y) |
| int | local_key_inkey (void) |
| int | show_title_screen (char *filename, int allow_keys) |
| char * | get_briefing_screen (int level_num) |
| void | init_char_pos (int x, int y) |
| void | show_bitmap_frame (void) |
| void | show_briefing_bitmap (grs_bitmap *bmp) |
| void | show_spinning_robot_frame (int robot_num) |
| void | init_spinning_robot (void) |
| void | init_briefing_bitmap (void) |
| int | show_char_delay (char the_char, int delay, int robot_num, int cursor_flag) |
| int | load_briefing_screen (int screen_num) |
| int | get_message_num (char **message) |
| void | get_message_name (char **message, char *result) |
| void | flash_cursor (int cursor_flag) |
| int | show_briefing_message (int screen_num, char *message) |
| char * | get_briefing_message (int screen_num) |
| void | load_screen_text (char *filename, char **buf) |
| int | show_briefing_text (int screen_num) |
| int | show_briefing_screen (int screen_num, int allow_keys) |
| void | do_briefing_screens (int level_num) |
| void | do_registered_end_game (void) |
| void | do_shareware_end_game (void) |
| void | show_order_form (void) |
| void | do_end_game (void) |
Variables | |
| ubyte | New_pal [768] |
| int | New_pal_254_bash |
| char * | Briefing_text |
| char | Ending_text_filename [13] = "endreg.tex" |
| char | Briefing_text_filename [13] = "briefing.tex" |
| int | Skip_briefing_screens = 0 |
| int | Briefing_foreground_colors [MAX_BRIEFING_COLORS] |
| int | Briefing_background_colors [MAX_BRIEFING_COLORS] |
| int | Current_color = 0 |
| int | Erase_color |
| briefing_screen | Briefing_screens [] |
| briefing_screen | Briefing_screens_h [] |
| int | Briefing_text_x |
| int | Briefing_text_y |
| grs_canvas * | Robot_canv = NULL |
| vms_angvec | Robot_angles |
| char | Bitmap_name [32] = "" |
| byte | Door_dir = 1 |
| byte | Door_div_count = 0 |
| byte | Animating_bitmap_type = 0 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
||||||||||||
|
|
|
|
|
|
|
|
|
||||||||||||
|
|
|
|
|
|
|
|
|
||||||||||||
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
||||||||||||
|
|
|
||||||||||||
|
|
|
|
|
|
||||||||||||||||||||
|
|
|
|
|
|
|
|
|
||||||||||||
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1.4.6