[56] | 1 | /* |
---|
| 2 | * Abuse - dark 2D side-scrolling platform game |
---|
| 3 | * Copyright (c) 1995 Crack dot Com |
---|
[494] | 4 | * Copyright (c) 2005-2011 Sam Hocevar <sam@hocevar.net> |
---|
[56] | 5 | * |
---|
| 6 | * This software was released into the Public Domain. As with most public |
---|
[555] | 7 | * domain software, no warranty is made or implied by Crack dot Com, by |
---|
| 8 | * Jonathan Clark, or by Sam Hocevar. |
---|
[56] | 9 | */ |
---|
| 10 | |
---|
[2] | 11 | #ifndef __LOADER_HPP_ |
---|
| 12 | #define __LOADER_HPP_ |
---|
| 13 | |
---|
[481] | 14 | #include "lisp/lisp.h" |
---|
| 15 | #include "sdlport/sound.h" |
---|
[62] | 16 | |
---|
[481] | 17 | #include "jwindow.h" |
---|
[2] | 18 | class property_manager; |
---|
| 19 | extern property_manager *prop; |
---|
| 20 | |
---|
| 21 | /*********************************title screen***********************************/ |
---|
| 22 | extern int title_screen; |
---|
| 23 | |
---|
| 24 | |
---|
| 25 | /*********************************joystick pictures******************************/ |
---|
| 26 | extern int joy_picts[2*9]; |
---|
| 27 | |
---|
| 28 | /*************************** devleopment mode pictures **************************/ |
---|
| 29 | extern int light_buttons[13]; |
---|
| 30 | |
---|
| 31 | /*********************************Fonts******************************************/ |
---|
| 32 | extern JCFont *big_font,*console_font; |
---|
| 33 | extern int big_font_pict,small_font_pict,console_font_pict; |
---|
| 34 | |
---|
| 35 | |
---|
| 36 | /******************************** FIGURES ***************************************/ |
---|
| 37 | |
---|
| 38 | |
---|
| 39 | extern int damage_pict,block_pict; |
---|
[555] | 40 | extern uint16_t current_start_type,start_position_type; |
---|
[2] | 41 | |
---|
| 42 | |
---|
| 43 | /******************************* SOUND EFFECTS **********************************/ |
---|
| 44 | extern int raise_volume,lower_volume,record_button,play_button,music_button,sfx_button; |
---|
[124] | 45 | |
---|
[2] | 46 | extern int sfx_volume,music_volume,sound_avail; |
---|
| 47 | extern song *current_song; |
---|
| 48 | |
---|
| 49 | /******************************** SCREEN FRAME **********************************/ |
---|
| 50 | extern int border_tile,window_texture, |
---|
[124] | 51 | record_button,play_button,window_colors,pause_image,vmm_image, |
---|
| 52 | earth,earth_mask,clouds, |
---|
| 53 | numbers[10], stat_bar, |
---|
| 54 | ok_button,cancel_button, |
---|
| 55 | cdc_logo; |
---|
[2] | 56 | |
---|
| 57 | |
---|
| 58 | /******************************** TILES *****************************************/ |
---|
| 59 | extern int *backtiles; // array of id's |
---|
| 60 | extern int *foretiles; |
---|
| 61 | extern int nforetiles,nbacktiles, // total foreground tiles & background tiles |
---|
[124] | 62 | f_wid,f_hi,b_wid,b_hi; // width and height of foreground/background tiles |
---|
[2] | 63 | |
---|
| 64 | |
---|
| 65 | /******************************** COLOR *****************************************/ |
---|
| 66 | extern palette *pal; |
---|
| 67 | extern color_filter *color_table; |
---|
| 68 | extern int light_connection_color; |
---|
| 69 | |
---|
| 70 | |
---|
| 71 | /******************************** MOUSE CURSORS *********************************/ |
---|
| 72 | extern int c_mouse1,c_mouse2,c_normal,c_target; |
---|
| 73 | |
---|
| 74 | /******************************* GLOBALS ****************************************/ |
---|
| 75 | extern long bg_xmul,bg_xdiv,bg_ymul,bg_ydiv; // brackground scroll rates |
---|
| 76 | extern char mouse_scrolling,palettes_locked,view_shift_disabled; |
---|
| 77 | extern int edit_mode; |
---|
| 78 | extern int start_running; |
---|
| 79 | |
---|
| 80 | |
---|
| 81 | image *load_image(spec_entry *e, bFILE *fp); // preforms scaling |
---|
[124] | 82 | image *load_image(bFILE *fp); |
---|
[2] | 83 | void load_data(int argc, char **argv); |
---|
| 84 | char *load_script(char *name); |
---|
| 85 | void load_tiles(Cell *file_list); |
---|
| 86 | extern char lsf[256]; |
---|
| 87 | |
---|
| 88 | #endif |
---|
| 89 | |
---|
| 90 | |
---|