projects
/
rocksndiamonds.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
added GDash source files prepared for game engine integration into R'n'D
[rocksndiamonds.git]
/
src
/
game_bd
/
export_bd.h
diff --git
a/src/game_bd/export_bd.h
b/src/game_bd/export_bd.h
index 53e72c61f9f31bbf75abe26ceb5dbc40349711c8..5545490baf1a3c692a41396d3e96154dbd9fd165 100644
(file)
--- a/
src/game_bd/export_bd.h
+++ b/
src/game_bd/export_bd.h
@@
-2,9
+2,9
@@
// Rocks'n'Diamonds - McDuffin Strikes Back!
// ----------------------------------------------------------------------------
// (c) 1995-2024 by Artsoft Entertainment
// Rocks'n'Diamonds - McDuffin Strikes Back!
// ----------------------------------------------------------------------------
// (c) 1995-2024 by Artsoft Entertainment
-// Holger Schemel
-//
info@artsoft.org
-//
https://www.artsoft.org/
+//
Holger Schemel
+// info@artsoft.org
+// https://www.artsoft.org/
// ----------------------------------------------------------------------------
// export_bd.h
// ============================================================================
// ----------------------------------------------------------------------------
// export_bd.h
// ============================================================================
@@
-16,7
+16,9
@@
// functions and definitions exported from game_bd to main program
// ============================================================================
// functions and definitions exported from game_bd to main program
// ============================================================================
+#include "bd_cave.h"
#include "bd_elements.h"
#include "bd_elements.h"
+#include "bd_gameplay.h"
// ----------------------------------------------------------------------------
// ----------------------------------------------------------------------------
@@
-33,8
+35,13
@@
struct GameInfo_BD
{
struct GameInfo_BD
{
+ GdGame *game;
+
+ unsigned int random_seed;
+
boolean level_solved;
boolean game_over;
boolean level_solved;
boolean game_over;
+ boolean cover_screen;
// needed for updating panel
int time_played;
// needed for updating panel
int time_played;
@@
-44,10
+51,20
@@
struct GameInfo_BD
struct LevelInfo_BD
{
struct LevelInfo_BD
{
- int width;
- int height;
+ GdCave *cave;
+ GdReplay *replay;
+
+ int cave_nr;
+ int level_nr;
+
+ boolean loaded_from_caveset;
+};
- int cave[BD_MAX_CAVE_WIDTH][BD_MAX_CAVE_HEIGHT];
+struct GraphicInfo_BD
+{
+ Bitmap *bitmap;
+ int src_x, src_y;
+ int width, height;
};
struct EngineSnapshotInfo_BD
};
struct EngineSnapshotInfo_BD
@@
-61,8
+78,15
@@
struct EngineSnapshotInfo_BD
extern struct GameInfo_BD game_bd;
extern struct LevelInfo_BD native_bd_level;
extern struct GameInfo_BD game_bd;
extern struct LevelInfo_BD native_bd_level;
+extern struct GraphicInfo_BD graphic_info_bd_object[O_MAX_ALL][8];
extern struct EngineSnapshotInfo_BD engine_snapshot_bd;
extern struct EngineSnapshotInfo_BD engine_snapshot_bd;
+int map_action_RND_to_BD(int);
+int map_action_BD_to_RND(int);
+
+boolean checkGameRunning_BD(void);
+
+void setLevelInfoToDefaults_BD_Ext(int, int);
void setLevelInfoToDefaults_BD(void);
#endif // EXPORT_BD_H
void setLevelInfoToDefaults_BD(void);
#endif // EXPORT_BD_H