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