rnd-20100216-1-src
[rocksndiamonds.git] / src / game_sp / main_sp.h
index 0c0db95bbb9283a2f853c2b6717586418606f31c..ff3035a483dd0c2a20ef6f8af10f7f09f1a7ad31 100644 (file)
@@ -6,6 +6,7 @@
 /* ========================================================================= */
 
 #include "../engines.h"
+#include "../conf_gfx.h"
 
 
 /* ========================================================================= */
@@ -40,8 +41,8 @@
 #define SCR_MENUY              12
 #define SCR_FIELDX             17
 #define SCR_FIELDY             17
-#define MAX_BUF_XSIZE          (SCR_FIELDX + 2)
-#define MAX_BUF_YSIZE          (SCR_FIELDY + 2)
+#define MAX_BUF_XSIZE          (2 + SCR_FIELDX + 2)
+#define MAX_BUF_YSIZE          (2 + SCR_FIELDY + 2)
 
 /* often used screen positions */
 #define SX                     8
 #define SXSIZE                 (SCR_FIELDX * TILEX)
 #define SYSIZE                 (SCR_FIELDY * TILEY)
 
+#define REAL_SX                        (SX - 2)
+#define REAL_SY                        (SY - 2)
+#define FULL_SXSIZE            (2 + SXSIZE + 2)
+#define FULL_SYSIZE            (2 + SYSIZE + 2)
+
 
 /* ------------------------------------------------------------------------- */
 /* data structure definitions                                                */
 
 extern struct LevelInfo_SP native_sp_level;
 
-extern struct GameInfo_SP game_sp;
-
 extern Bitmap *screenBitmap;
 
 extern Bitmap *sp_objects;
 
+extern int GfxElementLast[SP_MAX_PLAYFIELD_WIDTH][SP_MAX_PLAYFIELD_HEIGHT];
+extern int GfxGraphicLast[SP_MAX_PLAYFIELD_WIDTH][SP_MAX_PLAYFIELD_HEIGHT];
+extern int GfxGraphic[SP_MAX_PLAYFIELD_WIDTH][SP_MAX_PLAYFIELD_HEIGHT];
+extern int GfxFrame[SP_MAX_PLAYFIELD_WIDTH][SP_MAX_PLAYFIELD_HEIGHT];
+
 
 /* ------------------------------------------------------------------------- */
 /* exported functions                                                        */