rnd-20090719-1-src
[rocksndiamonds.git] / src / game_sp / main_sp.h
1 #ifndef MAIN_SP_H
2 #define MAIN_SP_H
3
4 /* ========================================================================= */
5 /* external functions and definitions imported from main program to game_sp  */
6 /* ========================================================================= */
7
8 #include "../engines.h"
9
10
11 /* ========================================================================= */
12 /* functions and definitions that are exported from game_sp to main program  */
13 /* ========================================================================= */
14
15 #include "export.h"
16
17
18 /* ========================================================================= */
19 /* internal functions and definitions that are not exported to main program  */
20 /* ========================================================================= */
21
22
23 /* ------------------------------------------------------------------------- */
24 /* constant definitions                                                      */
25 /* ------------------------------------------------------------------------- */
26
27 /* screen sizes and positions for SP engine */
28
29 #define ORIG_TILEX              16
30 #define ORIG_TILEY              16
31
32 #define ZOOM_FACTOR             2
33
34 #define TILEX                   (ORIG_TILEX             * ZOOM_FACTOR)
35 #define TILEY                   (ORIG_TILEY             * ZOOM_FACTOR)
36
37 #define ORIG_SCR_MENUX          20
38 #define ORIG_SCR_MENUY          12
39 #define SCR_MENUX               17
40 #define SCR_MENUY               12
41 #define SCR_FIELDX              17
42 #define SCR_FIELDY              17
43 #define MAX_BUF_XSIZE           (SCR_FIELDX + 2)
44 #define MAX_BUF_YSIZE           (SCR_FIELDY + 2)
45
46 /* often used screen positions */
47 #define SX                      8
48 #define SY                      8
49 #define SXSIZE                  (SCR_FIELDX * TILEX)
50 #define SYSIZE                  (SCR_FIELDY * TILEY)
51
52
53 /* ------------------------------------------------------------------------- */
54 /* data structure definitions                                                */
55 /* ------------------------------------------------------------------------- */
56
57 /* ------------------------------------------------------------------------- */
58 /* exported variables                                                        */
59 /* ------------------------------------------------------------------------- */
60
61 extern struct LevelInfo_SP native_sp_level;
62
63 extern struct GameInfo_SP game_sp;
64
65 extern Bitmap *screenBitmap;
66
67 extern Bitmap *sp_objects;
68
69
70 /* ------------------------------------------------------------------------- */
71 /* exported functions                                                        */
72 /* ------------------------------------------------------------------------- */
73
74 #endif  /* MAIN_SP_H */