1 // ============================================================================
2 // Rocks'n'Diamonds - McDuffin Strikes Back!
3 // ----------------------------------------------------------------------------
4 // (c) 1995-2014 by Artsoft Entertainment
7 // https://www.artsoft.org/
8 // ----------------------------------------------------------------------------
10 // ============================================================================
15 #include "libgame/libgame.h"
17 #include "game_em/export.h"
18 #include "game_sp/export.h"
19 #include "game_mm/export.h"
24 // ============================================================================
25 // functions and definitions exported from main program to game_em
26 // ============================================================================
28 void UpdateEngineValues(int, int, int, int);
30 boolean swapTiles_EM(boolean);
31 boolean getTeamMode_EM(void);
32 boolean isActivePlayer_EM(int);
34 int getScreenFieldSizeX(void);
35 int getScreenFieldSizeY(void);
37 void PlayLevelSound_EM(int, int, int, int);
38 void InitGraphicInfo_EM(void);
39 boolean CheckSingleStepMode_EM(int, boolean, boolean, boolean);
41 void SetGfxAnimation_EM(struct GraphicInfo_EM *, int, int, int, int);
42 void getGraphicSourceObjectExt_EM(struct GraphicInfo_EM *, int, int, int, int);
43 void getGraphicSourcePlayerExt_EM(struct GraphicInfo_EM *, int, int, int);
46 // ============================================================================
47 // functions and definitions exported from main program to game_sp
48 // ============================================================================
50 void CheckSingleStepMode_SP(boolean, boolean);
52 void getGraphicSource_SP(struct GraphicInfo_SP *, int, int);
53 int getGraphicInfo_Delay(int);
54 boolean isNextAnimationFrame_SP(int, int);
57 // ============================================================================
58 // functions and definitions exported from main program to game_mm
59 // ============================================================================
61 void SetDrawtoField(int);
64 int el_act2img_mm(int, int);
66 void CheckSingleStepMode_MM(boolean, boolean);
67 void ShowEnvelope_MM(int);
69 int getGraphicAnimationFrame(int, int);
70 int getGraphicAnimationFrameXY(int, int, int);
72 void getGraphicSource(int, int, Bitmap **, int *, int *);
73 void getMiniGraphicSource(int, Bitmap **, int *, int *);
74 void getSizedGraphicSource(int, int, int, Bitmap **, int *, int *);
75 boolean getGraphicInfo_NewFrame(int, int, int);
77 void AdvanceFrameCounter(void);
78 void AdvanceGfxFrame(void);
80 int getAnimationFrame(int, int, int, int, int);