rnd-20090623-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 SCR_FIELDX              17
38 #define SCR_FIELDY              17
39
40 /* often used screen positions */
41 #define SX                      8
42 #define SY                      8
43 #define SXSIZE                  (SCR_FIELDX * TILEX)
44 #define SYSIZE                  (SCR_FIELDY * TILEY)
45
46
47 /* ------------------------------------------------------------------------- */
48 /* data structure definitions                                                */
49 /* ------------------------------------------------------------------------- */
50
51 /* ------------------------------------------------------------------------- */
52 /* exported variables                                                        */
53 /* ------------------------------------------------------------------------- */
54
55 extern struct LevelInfo_SP native_sp_level;
56
57 extern struct GameInfo_SP game_sp;
58
59
60 /* ------------------------------------------------------------------------- */
61 /* exported functions                                                        */
62 /* ------------------------------------------------------------------------- */
63
64 #endif  /* MAIN_SP_H */