projects
/
rocksndiamonds.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
fixed handling of androids in EM engine for old tapes
[rocksndiamonds.git]
/
src
/
game_em
/
export.h
diff --git
a/src/game_em/export.h
b/src/game_em/export.h
index acd000b55d44408cbb3406306093e58294749726..ddd32c9f022c7d9cb1f8fe2e71bedeb27676bd7e 100644
(file)
--- a/
src/game_em/export.h
+++ b/
src/game_em/export.h
@@
-6,6
+6,7
@@
// ============================================================================
#include "emerald.h"
// ============================================================================
#include "emerald.h"
+#include "cave.h"
// ----------------------------------------------------------------------------
// ----------------------------------------------------------------------------
@@
-27,30
+28,33
@@
struct GlobalInfo_EM
struct GameInfo_EM
{
struct GameInfo_EM
{
+ unsigned int random;
+
boolean level_solved;
boolean game_over;
boolean any_player_moving;
boolean any_player_snapping;
boolean level_solved;
boolean game_over;
boolean any_player_moving;
boolean any_player_snapping;
- boolean use_single_button;
- boolean use_snap_key_bug;
-
int last_moving_player;
int last_player_direction[MAX_PLAYERS];
int last_moving_player;
int last_player_direction[MAX_PLAYERS];
- struct L
EVEL
*lev;
+ struct L
OGIC
*lev;
struct PLAYER *ply[MAX_PLAYERS];
struct PLAYER *ply[MAX_PLAYERS];
+
+ // flags to handle bugs in and changes between different engine versions
+ boolean use_single_button;
+ boolean use_snap_key_bug;
+ boolean use_old_explosions;
+ boolean use_old_android;
+ boolean use_wrap_around;
};
struct LevelInfo_EM
{
int file_version;
};
struct LevelInfo_EM
{
int file_version;
- short cave[CAVE_WIDTH][CAVE_HEIGHT];
-
- struct LEVEL *lev;
- struct PLAYER *ply[MAX_PLAYERS];
+ struct CAVE *cav;
};
struct GraphicInfo_EM
};
struct GraphicInfo_EM
@@
-75,12
+79,12
@@
struct GraphicInfo_EM
struct EngineSnapshotInfo_EM
{
struct GameInfo_EM game_em;
struct EngineSnapshotInfo_EM
{
struct GameInfo_EM game_em;
- unsigned int RandomEM;
- struct LEVEL lev;
+ struct LOGIC lev;
struct PLAYER ply[MAX_PLAYERS];
struct PLAYER ply[MAX_PLAYERS];
+
+ int frame;
int screen_x;
int screen_y;
int screen_x;
int screen_y;
- int frame;
};
};
@@
-91,7
+95,7
@@
struct EngineSnapshotInfo_EM
extern struct GlobalInfo_EM global_em_info;
extern struct GameInfo_EM game_em;
extern struct LevelInfo_EM native_em_level;
extern struct GlobalInfo_EM global_em_info;
extern struct GameInfo_EM game_em;
extern struct LevelInfo_EM native_em_level;
-extern struct GraphicInfo_EM graphic_info_em_object[TILE_MAX][8];
+extern struct GraphicInfo_EM graphic_info_em_object[
GAME_
TILE_MAX][8];
extern struct GraphicInfo_EM graphic_info_em_player[MAX_PLAYERS][PLY_MAX][8];
extern struct EngineSnapshotInfo_EM engine_snapshot_em;
extern struct GraphicInfo_EM graphic_info_em_player[MAX_PLAYERS][PLY_MAX][8];
extern struct EngineSnapshotInfo_EM engine_snapshot_em;
@@
-119,4
+123,7
@@
void SaveEngineSnapshotValues_EM(void);
boolean checkIfAllPlayersFitToScreen(void);
boolean checkIfAllPlayersFitToScreen(void);
+int map_em_element_C_to_X(int);
+int map_em_element_X_to_C(int);
+
#endif // EXPORT_H
#endif // EXPORT_H