added GDash game elements and sounds for Boulder Dash game engine
[rocksndiamonds.git] / src / game_bd / export_bd.h
1 // ============================================================================
2 // Rocks'n'Diamonds - McDuffin Strikes Back!
3 // ----------------------------------------------------------------------------
4 // (c) 1995-2024 by Artsoft Entertainment
5 //                  Holger Schemel
6 //                  info@artsoft.org
7 //                  https://www.artsoft.org/
8 // ----------------------------------------------------------------------------
9 // export_bd.h
10 // ============================================================================
11
12 #ifndef EXPORT_BD_H
13 #define EXPORT_BD_H
14
15 // ============================================================================
16 // functions and definitions exported from game_bd to main program
17 // ============================================================================
18
19 #include "bd_elements.h"
20
21
22 // ----------------------------------------------------------------------------
23 // constant definitions
24 // ----------------------------------------------------------------------------
25
26 #define BD_MAX_CAVE_WIDTH               MAX_PLAYFIELD_WIDTH
27 #define BD_MAX_CAVE_HEIGHT              MAX_PLAYFIELD_HEIGHT
28
29
30 // ----------------------------------------------------------------------------
31 // data structure definitions
32 // ----------------------------------------------------------------------------
33
34 struct GameInfo_BD
35 {
36   boolean level_solved;
37   boolean game_over;
38
39   // needed for updating panel
40   int time_played;
41   int gems_still_needed;
42   int score;
43 };
44
45 struct LevelInfo_BD
46 {
47   int width;
48   int height;
49
50   int cave[BD_MAX_CAVE_WIDTH][BD_MAX_CAVE_HEIGHT];
51 };
52
53 struct EngineSnapshotInfo_BD
54 {
55 };
56
57
58 // ----------------------------------------------------------------------------
59 // exported functions
60 // ----------------------------------------------------------------------------
61
62 extern struct GameInfo_BD game_bd;
63 extern struct LevelInfo_BD native_bd_level;
64 extern struct EngineSnapshotInfo_BD engine_snapshot_bd;
65
66 void setLevelInfoToDefaults_BD(void);
67
68 #endif  // EXPORT_BD_H