X-Git-Url: https://git.artsoft.org/?a=blobdiff_plain;f=src%2Fgame_em%2Fexport.h;h=a79a14866f545c3880544dd011375a087e27147f;hb=6b9e2be7;hp=1283829754c77f85527423c44595da22ba9bce5e;hpb=96c2871c2efdc7f3e6edf49841409eb8e38a78e1;p=rocksndiamonds.git diff --git a/src/game_em/export.h b/src/game_em/export.h index 12838297..a79a1486 100644 --- a/src/game_em/export.h +++ b/src/game_em/export.h @@ -6,6 +6,7 @@ // ============================================================================ #include "emerald.h" +#include "cave.h" // ---------------------------------------------------------------------------- @@ -27,30 +28,31 @@ struct GlobalInfo_EM struct GameInfo_EM { + unsigned int random; + 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]; + + struct LOGIC *lev; + 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; }; struct LevelInfo_EM { int file_version; - short cave[CAVE_WIDTH][CAVE_HEIGHT]; - - struct LEVEL *lev; - struct PLAYER *ply[MAX_PLAYERS]; - - /* used for runtime values */ - struct GameInfo_EM *game_em; + struct CAVE *cav; }; struct GraphicInfo_EM @@ -75,12 +77,12 @@ struct GraphicInfo_EM struct EngineSnapshotInfo_EM { struct GameInfo_EM game_em; - unsigned int RandomEM; - struct LEVEL lev; + struct LOGIC lev; struct PLAYER ply[MAX_PLAYERS]; + + int frame; int screen_x; int screen_y; - int frame; };