X-Git-Url: https://git.artsoft.org/?a=blobdiff_plain;f=src%2Fgame_sp%2Fexport.h;h=aecfcc856a83c9741678ddafbe802bed168ed911;hb=3c080c7b33b6dfcc6e0039b592c5f268535873e7;hp=ffd787839b2e2b0be04ccd905108ae39e1852dad;hpb=148d0ad7e7ac1a97eb50de7ecbb642f36c877311;p=rocksndiamonds.git diff --git a/src/game_sp/export.h b/src/game_sp/export.h index ffd78783..aecfcc85 100644 --- a/src/game_sp/export.h +++ b/src/game_sp/export.h @@ -24,6 +24,9 @@ SP_PLAYFIELD_HEIGHT) #define SP_LEVEL_SIZE (SP_HEADER_SIZE + SP_PLAYFIELD_SIZE) +#define SP_SCREEN_BUFFER_XSIZE (SCR_FIELDX + 2) +#define SP_SCREEN_BUFFER_YSIZE (SCR_FIELDY + 2) + #define SP_FRAMES_PER_SECOND 35 #define SP_MAX_TAPE_LEN 64010 /* (see "spfix63.doc") */ @@ -80,20 +83,30 @@ struct GlobalInfo_SP struct GameInfo_SP { + boolean LevelSolved; + boolean GameOver; +}; + +struct DemoInfo_SP +{ + boolean is_available; /* structure contains valid demo */ + + int level_nr; /* number of corresponding level */ + + int length; /* number of demo entries */ + byte data[SP_MAX_TAPE_LEN]; /* array of demo entries */ }; struct LevelInfo_SP { LevelInfoType header; - - byte playfield[SP_MAX_PLAYFIELD_WIDTH][SP_MAX_PLAYFIELD_HEIGHT]; + byte header_raw_bytes[SP_HEADER_SIZE]; int width, height; - boolean demo_available; + byte playfield[SP_MAX_PLAYFIELD_WIDTH][SP_MAX_PLAYFIELD_HEIGHT]; - byte demo[SP_MAX_TAPE_LEN]; - int demo_length; + struct DemoInfo_SP demo; }; struct GraphicInfo_SP @@ -125,6 +138,7 @@ struct EngineSnapshotInfo_SP /* ------------------------------------------------------------------------- */ extern struct GlobalInfo_SP global_sp_info; +extern struct GameInfo_SP game_sp_info; extern struct LevelInfo_SP native_sp_level; extern struct GraphicInfo_SP graphic_info_sp_object[TILE_MAX][8]; extern struct GraphicInfo_SP graphic_info_sp_player[MAX_PLAYERS][SPR_MAX][8]; @@ -150,4 +164,7 @@ extern void DrawGameDoorValues_SP(); extern void LoadEngineSnapshotValues_SP(); extern void SaveEngineSnapshotValues_SP(); +extern int map_key_RND_to_SP(int); +extern int map_key_SP_to_RND(int); + #endif /* GAME_SP_EXPORT_H */