1 #ifndef GAME_SP_EXPORT_H
2 #define GAME_SP_EXPORT_H
4 /* ========================================================================= */
5 /* functions and definitions exported from game_sp to main program */
6 /* ========================================================================= */
8 /* ------------------------------------------------------------------------- */
9 /* constant definitions */
10 /* ------------------------------------------------------------------------- */
13 /* ------------------------------------------------------------------------- */
14 /* data structure definitions */
15 /* ------------------------------------------------------------------------- */
34 int src_offset_x, src_offset_y;
35 int dst_offset_x, dst_offset_y;
38 Bitmap *crumbled_bitmap;
39 int crumbled_src_x, crumbled_src_y;
40 int crumbled_border_size;
42 boolean has_crumbled_graphics;
43 boolean preserve_background;
45 int unique_identifier; /* used to identify needed screen updates */
48 struct EngineSnapshotInfo_SP
50 struct GameInfo_SP game_sp;
54 /* ------------------------------------------------------------------------- */
55 /* exported functions */
56 /* ------------------------------------------------------------------------- */
58 extern struct GlobalInfo_SP global_sp_info;
59 extern struct LevelInfo_SP native_sp_level;
60 extern struct GraphicInfo_SP graphic_info_sp_object[TILE_MAX][8];
61 extern struct GraphicInfo_SP graphic_info_sp_player[MAX_PLAYERS][SPR_MAX][8];
62 extern struct EngineSnapshotInfo_SP engine_snapshot_sp;
64 extern void sp_open_all();
65 extern void sp_close_all();
67 extern void InitGameEngine_SP();
68 extern void GameActions_SP(byte *, boolean);
70 extern unsigned int InitEngineRandom_SP(long);
72 extern void setLevelInfoToDefaults_SP();
73 extern boolean LoadNativeLevel_SP(char *);
75 extern void BackToFront_SP(void);
76 extern void BlitScreenToBitmap_SP(Bitmap *);
77 extern void RedrawPlayfield_SP(boolean);
78 extern void DrawGameDoorValues_SP();
80 extern void LoadEngineSnapshotValues_SP();
81 extern void SaveEngineSnapshotValues_SP();
83 #endif /* GAME_SP_EXPORT_H */