X-Git-Url: https://git.artsoft.org/?a=blobdiff_plain;f=src%2Fgame_em%2Fglobal.h;h=3efba4477d546646395f69aedce635e70fd1c70b;hb=6eaf8f1f31cd229a7315063f4434389d00aa5cff;hp=2f062e512625d78d5b3412ba2fe44c50154af41a;hpb=d14ff3d04c44d90b4dc151fd7774946e20da0152;p=rocksndiamonds.git diff --git a/src/game_em/global.h b/src/game_em/global.h index 2f062e51..3efba447 100644 --- a/src/game_em/global.h +++ b/src/game_em/global.h @@ -3,62 +3,27 @@ #include "main_em.h" -#define EM_GFX_DIR "graphics.EM" -#define EM_SND_DIR "sounds.EM" -#define EM_LVL_DIR "levels.EM" -/* arbitrary maximum length of filenames (cos i am lazy) */ -#define MAXNAME 1024 - -extern int debug; -extern char *progname; -extern char *arg_basedir; +/* global variables */ extern int frame; +extern int screen_x, screen_y; -extern short ulaw_to_linear[256]; -extern unsigned char linear_to_ulaw[65536]; - -/* all global function prototypes */ -int open_all(void); -void close_all(void); +/* global function prototypes */ -#if 1 -void readjoy(byte, struct PLAYER *); -#else -void readjoy(byte); -#endif -void input_eventloop(void); - -void blitscreen(void); void game_initscreen(void); -void game_animscreen(void); - -void DrawGameDoorValues_EM(); +void game_init_random(void); +void game_init_cave_buffers(void); void play_sound(int, int, int); -void sound_play(void); +void play_element_sound(int, int, int, int); -int cave_convert(char *); -boolean LoadNativeLevel_EM(char *); +void logic_init(void); +void logic(void); -void game_init_vars(void); -void game_play_init(int, char *); -void game_loop(byte); - -void synchro_1(void); -void synchro_2(void); -void synchro_3(void); - -int cleanup_em_level(unsigned char *, int); +int cleanup_em_level(unsigned char *, int, char *); void convert_em_level(unsigned char *, int); void prepare_em_level(void); -int sound_thread(void); -int read_sample(char *, short **, long *); - -void read_cave_list(void); -void free_cave_list(void); - #endif