4 // ============================================================================
5 // external functions and definitions imported from main program to game_mm
6 // ============================================================================
8 #include "../engines.h"
9 #include "../conf_gfx.h"
12 // ============================================================================
13 // functions and definitions that are exported from game_mm to main program
14 // ============================================================================
19 // ============================================================================
20 // internal functions and definitions that are not exported to main program
21 // ============================================================================
24 // ----------------------------------------------------------------------------
25 // constant definitions
26 // ----------------------------------------------------------------------------
28 // screen sizes and positions for MM engine
30 extern int TILESIZE_VAR;
33 #define TILEX TILESIZE
34 #define TILEY TILESIZE
35 #define TILEX_VAR TILESIZE_VAR
36 #define TILEY_VAR TILESIZE_VAR
38 extern int SCR_FIELDX, SCR_FIELDY;
40 #define MAX_BUF_XSIZE SCR_FIELDX
41 #define MAX_BUF_YSIZE SCR_FIELDY
43 // often used screen positions
47 #define SXSIZE (SCR_FIELDX * TILEX_VAR)
48 #define SYSIZE (SCR_FIELDY * TILEY_VAR)
49 #define FXSIZE (MAX_BUF_XSIZE * TILEX_VAR)
50 #define FYSIZE (MAX_BUF_YSIZE * TILEY_VAR)
52 extern int REAL_SX, REAL_SY;
54 #define FULL_SXSIZE (2 + SXSIZE + 2)
55 #define FULL_SYSIZE (2 + SYSIZE + 2)
58 // ----------------------------------------------------------------------------
59 // data structure definitions
60 // ----------------------------------------------------------------------------
62 // ----------------------------------------------------------------------------
64 // ----------------------------------------------------------------------------
66 extern struct LevelInfo_MM native_mm_level;
69 // ----------------------------------------------------------------------------
71 // ----------------------------------------------------------------------------