rnd-20091112-1-src
[rocksndiamonds.git] / src / game_sp / main.c
1
2 #include "main_sp.h"
3 #include "global.h"
4
5
6 struct GameInfo_SP game_sp_info;
7 struct LevelInfo_SP native_sp_level;
8
9 void InitGameEngine_SP()
10 {
11   game_sp_info.LevelSolved = FALSE;
12   game_sp_info.GameOver = FALSE;
13
14 #if 1
15   menPlay_Click();
16 #else
17   menPlayDemo_Click();
18 #endif
19 }
20
21 #if 0
22 void BlitScreenToBitmap_SP(Bitmap *target_bitmap)
23 {
24   DDScrollBuffer_Blt_Ext(target_bitmap);
25 }
26 #endif
27
28 void RedrawPlayfield_SP(boolean force_redraw)
29 {
30   // subDisplayLevel();
31
32   UpdatePlayfield();
33
34   BackToFront_SP();
35 }
36
37 void GameActions_SP(byte action[MAX_PLAYERS], boolean warp_mode)
38 {
39   byte single_player_action = action[0];
40
41   subMainGameLoop_Main(single_player_action, warp_mode);
42
43   RedrawPlayfield_SP(FALSE);
44 }