rnd-20090623-1-src
[rocksndiamonds.git] / src / game_sp / main_sp.h
diff --git a/src/game_sp/main_sp.h b/src/game_sp/main_sp.h
new file mode 100644 (file)
index 0000000..127445a
--- /dev/null
@@ -0,0 +1,64 @@
+#ifndef MAIN_SP_H
+#define MAIN_SP_H
+
+/* ========================================================================= */
+/* external functions and definitions imported from main program to game_sp  */
+/* ========================================================================= */
+
+#include "../engines.h"
+
+
+/* ========================================================================= */
+/* functions and definitions that are exported from game_sp to main program  */
+/* ========================================================================= */
+
+#include "export.h"
+
+
+/* ========================================================================= */
+/* internal functions and definitions that are not exported to main program  */
+/* ========================================================================= */
+
+
+/* ------------------------------------------------------------------------- */
+/* constant definitions                                                      */
+/* ------------------------------------------------------------------------- */
+
+/* screen sizes and positions for SP engine */
+
+#define ORIG_TILEX             16
+#define ORIG_TILEY             16
+
+#define ZOOM_FACTOR            2
+
+#define TILEX                  (ORIG_TILEX             * ZOOM_FACTOR)
+#define TILEY                  (ORIG_TILEY             * ZOOM_FACTOR)
+
+#define SCR_FIELDX             17
+#define SCR_FIELDY             17
+
+/* often used screen positions */
+#define SX                     8
+#define SY                     8
+#define SXSIZE                 (SCR_FIELDX * TILEX)
+#define SYSIZE                 (SCR_FIELDY * TILEY)
+
+
+/* ------------------------------------------------------------------------- */
+/* data structure definitions                                                */
+/* ------------------------------------------------------------------------- */
+
+/* ------------------------------------------------------------------------- */
+/* exported variables                                                        */
+/* ------------------------------------------------------------------------- */
+
+extern struct LevelInfo_SP native_sp_level;
+
+extern struct GameInfo_SP game_sp;
+
+
+/* ------------------------------------------------------------------------- */
+/* exported functions                                                        */
+/* ------------------------------------------------------------------------- */
+
+#endif /* MAIN_SP_H */