rnd-20100521-1-src
[rocksndiamonds.git] / src / engines.h
1 /***********************************************************
2 * Artsoft Retro-Game Library                               *
3 *----------------------------------------------------------*
4 * (c) 1994-2006 Artsoft Entertainment                      *
5 *               Holger Schemel                             *
6 *               Detmolder Strasse 189                      *
7 *               33604 Bielefeld                            *
8 *               Germany                                    *
9 *               e-mail: info@artsoft.org                   *
10 *----------------------------------------------------------*
11 * engines.h                                                *
12 ***********************************************************/
13
14 #ifndef ENGINES_H
15 #define ENGINES_H
16
17 #include "libgame/libgame.h"
18 #include "game_em/export.h"
19 #include "game_sp/export.h"
20
21 #include "game.h"
22
23
24 /* ========================================================================= */
25 /* functions and definitions exported from main program to game_em           */
26 /* ========================================================================= */
27
28 extern void SetBitmaps_EM(Bitmap **);
29 extern void UpdateEngineValues(int, int);
30 extern void DrawAllGameValues(int, int, int, int, int);
31
32 extern int getNumActivePlayers_EM();
33 extern int getGameFrameDelay_EM(int);
34
35 extern void PlayLevelSound_EM(int, int, int, int);
36 extern void InitGraphicInfo_EM(void);
37 extern void CheckSingleStepMode_EM(byte action[], int, boolean);
38
39 void SetGfxAnimation_EM(struct GraphicInfo_EM *, int, int, int, int);
40 void getGraphicSourceObjectExt_EM(struct GraphicInfo_EM *, int, int, int, int);
41 void getGraphicSourcePlayerExt_EM(struct GraphicInfo_EM *, int, int, int);
42
43
44 /* ========================================================================= */
45 /* functions and definitions exported from main program to game_sp           */
46 /* ========================================================================= */
47
48 #if 0
49 extern void SetBitmaps_SP(Bitmap **);
50 #endif
51
52 void CheckSingleStepMode_SP(boolean);
53
54 void getGraphicSource_SP(struct GraphicInfo_SP *, int, int, int, int);
55 int getGraphicInfo_Delay(int);
56 boolean isNextAnimationFrame_SP(int, int);
57
58
59 #endif  /* ENGINES_H */