b299f3fc570200efb776319914a09b8369cbb9c3
[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
19 #include "game_em/export.h"
20 #include "game_sp/export.h"
21
22 #include "game.h"
23
24
25 /* ========================================================================= */
26 /* functions and definitions exported from main program to game_em           */
27 /* ========================================================================= */
28
29 extern void SetBitmaps_EM(Bitmap **);
30 extern void UpdateEngineValues(int, int);
31 extern void DrawAllGameValues(int, int, int, int, int);
32
33 #if 1
34 extern boolean getTeamMode_EM();
35 #else
36 extern int getNumActivePlayers_EM();
37 #endif
38 extern int getGameFrameDelay_EM(int);
39
40 extern void PlayLevelSound_EM(int, int, int, int);
41 extern void InitGraphicInfo_EM(void);
42 extern void CheckSingleStepMode_EM(byte action[], int, boolean, boolean);
43
44 void SetGfxAnimation_EM(struct GraphicInfo_EM *, int, int, int, int);
45 void getGraphicSourceObjectExt_EM(struct GraphicInfo_EM *, int, int, int, int);
46 void getGraphicSourcePlayerExt_EM(struct GraphicInfo_EM *, int, int, int);
47
48
49 /* ========================================================================= */
50 /* functions and definitions exported from main program to game_sp           */
51 /* ========================================================================= */
52
53 #if 0
54 extern void SetBitmaps_SP(Bitmap **);
55 #endif
56
57 void CheckSingleStepMode_SP(boolean, boolean);
58
59 void getGraphicSource_SP(struct GraphicInfo_SP *, int, int, int, int);
60 int getGraphicInfo_Delay(int);
61 boolean isNextAnimationFrame_SP(int, int);
62
63
64 #endif  /* ENGINES_H */