removed unused image file for native Boulder Dash graphics
[rocksndiamonds.git] / src / game_mm / main_mm.h
index 4eb98fc7ffbea160cd2e9973dfeac3e847db7282..c964a86f7dbb5c97410cdb62d40e378ec0bfae3d 100644 (file)
@@ -1,31 +1,41 @@
+// ============================================================================
+// Rocks'n'Diamonds - McDuffin Strikes Back!
+// ----------------------------------------------------------------------------
+// (c) 1995-2024 by Artsoft Entertainment
+//                         Holger Schemel
+//                 info@artsoft.org
+//                 https://www.artsoft.org/
+// ----------------------------------------------------------------------------
+// main_mm.h
+// ============================================================================
+
 #ifndef MAIN_MM_H
 #define MAIN_MM_H
 
-/* ========================================================================= */
-/* external functions and definitions imported from main program to game_mm  */
-/* ========================================================================= */
+// ============================================================================
+// external functions and definitions imported from main program to game_mm
+// ============================================================================
 
-#include "../engines.h"
-#include "../conf_gfx.h"
+#include "import_mm.h"
 
 
-/* ========================================================================= */
-/* functions and definitions that are exported from game_mm to main program  */
-/* ========================================================================= */
+// ============================================================================
+// functions and definitions that are exported from game_mm to main program
+// ============================================================================
 
-#include "export.h"
+#include "export_mm.h"
 
 
-/* ========================================================================= */
-/* internal functions and definitions that are not exported to main program  */
-/* ========================================================================= */
+// ============================================================================
+// internal functions and definitions that are not exported to main program
+// ============================================================================
 
 
-/* ------------------------------------------------------------------------- */
-/* constant definitions                                                      */
-/* ------------------------------------------------------------------------- */
+// ----------------------------------------------------------------------------
+// constant definitions
+// ----------------------------------------------------------------------------
 
-/* screen sizes and positions for MM engine */
+// screen sizes and positions for MM engine
 
 extern int                     TILESIZE_VAR;
 
@@ -35,12 +45,16 @@ extern int                  TILESIZE_VAR;
 #define TILEX_VAR              TILESIZE_VAR
 #define TILEY_VAR              TILESIZE_VAR
 
+#define MINI_TILESIZE          (TILESIZE / 2)
+#define MINI_TILEX             (TILEX / 2)
+#define MINI_TILEY             (TILEY / 2)
+
 extern int                     SCR_FIELDX, SCR_FIELDY;
 
 #define MAX_BUF_XSIZE          SCR_FIELDX
 #define MAX_BUF_YSIZE          SCR_FIELDY
 
-/* often used screen positions */
+// often used screen positions
 
 extern int                     SX, SY;
 
@@ -55,26 +69,19 @@ extern int                  REAL_SX, REAL_SY;
 #define FULL_SYSIZE            (2 + SYSIZE + 2)
 
 
-/* ------------------------------------------------------------------------- */
-/* data structure definitions                                                */
-/* ------------------------------------------------------------------------- */
+// ----------------------------------------------------------------------------
+// data structure definitions
+// ----------------------------------------------------------------------------
 
-/* ------------------------------------------------------------------------- */
-/* exported variables                                                        */
-/* ------------------------------------------------------------------------- */
+// ----------------------------------------------------------------------------
+// exported variables
+// ----------------------------------------------------------------------------
 
 extern struct LevelInfo_MM native_mm_level;
 
-extern Bitmap *bitmap_db_field_mm;
-
-extern int GfxElementLast[MM_MAX_PLAYFIELD_WIDTH][MM_MAX_PLAYFIELD_HEIGHT];
-extern int GfxGraphicLast[MM_MAX_PLAYFIELD_WIDTH][MM_MAX_PLAYFIELD_HEIGHT];
-extern int GfxGraphic[MM_MAX_PLAYFIELD_WIDTH][MM_MAX_PLAYFIELD_HEIGHT];
-extern int GfxFrame[MM_MAX_PLAYFIELD_WIDTH][MM_MAX_PLAYFIELD_HEIGHT];
-
 
-/* ------------------------------------------------------------------------- */
-/* exported functions                                                        */
-/* ------------------------------------------------------------------------- */
+// ----------------------------------------------------------------------------
+// exported functions
+// ----------------------------------------------------------------------------
 
-#endif /* MAIN_MM_H */
+#endif // MAIN_MM_H