1 | /* |
---|
2 | * Abuse - dark 2D side-scrolling platform game |
---|
3 | * Copyright (c) 1995 Crack dot Com |
---|
4 | * Copyright (c) 2005-2011 Sam Hocevar <sam@hocevar.net> |
---|
5 | * |
---|
6 | * This software was released into the Public Domain. As with most public |
---|
7 | * domain software, no warranty is made or implied by Crack dot Com, by |
---|
8 | * Jonathan Clark, or by Sam Hocevar. |
---|
9 | */ |
---|
10 | |
---|
11 | #ifndef __LOADER_HPP_ |
---|
12 | #define __LOADER_HPP_ |
---|
13 | |
---|
14 | #include "lisp/lisp.h" |
---|
15 | #include "sdlport/sound.h" |
---|
16 | |
---|
17 | #include "jwindow.h" |
---|
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; |
---|
40 | extern uint16_t current_start_type,start_position_type; |
---|
41 | |
---|
42 | |
---|
43 | /******************************* SOUND EFFECTS **********************************/ |
---|
44 | extern int raise_volume,lower_volume,record_button,play_button,music_button,sfx_button; |
---|
45 | |
---|
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, |
---|
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; |
---|
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 |
---|
62 | f_wid,f_hi,b_wid,b_hi; // width and height of foreground/background tiles |
---|
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 |
---|
82 | image *load_image(bFILE *fp); |
---|
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 | |
---|