rnd-20091024-2-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 void BlitScreenToBitmap_SP(Bitmap *target_bitmap)
22 {
23   DDScrollBuffer_Blt_Ext(target_bitmap);
24 }
25
26 void GameActions_SP(byte action[MAX_PLAYERS], boolean warp_mode)
27 {
28   byte single_player_action = action[0];
29
30   subMainGameLoop_Main(single_player_action, warp_mode);
31 }
32
33 void RedrawPlayfield_SP(boolean force_redraw)
34 {
35   subDisplayLevel();
36 }