X-Git-Url: https://git.artsoft.org/?a=blobdiff_plain;f=src%2Fgame.h;h=a18b3f0cb56df50a12bda57a4b10044d68e393bf;hb=590e9a86daa2b0d3923673bfe02525766224808e;hp=c7e70c315d2cd08b697e85dd52b9e0870befafe2;hpb=d622dbaa8d28574914b62457bdc518ca70b3ee21;p=rocksndiamonds.git diff --git a/src/game.h b/src/game.h index c7e70c31..a18b3f0c 100644 --- a/src/game.h +++ b/src/game.h @@ -14,12 +14,25 @@ #ifndef GAME_H #define GAME_H +/* (not included here due to collisions with Emerald Mine engine definitions) */ +/* #include "main.h" */ #define MAX_INVENTORY_SIZE 1000 #define STD_NUM_KEYS 4 #define MAX_NUM_KEYS 8 +#if 1 +struct GamePanelInfo +{ + struct TextPosInfo level; + struct TextPosInfo gems; + struct TextPosInfo inventory; + struct TextPosInfo keys; + struct TextPosInfo score; + struct TextPosInfo time; +}; +#else struct GamePanelInfo { struct XY level; @@ -29,6 +42,7 @@ struct GamePanelInfo struct XY score; struct XY time; }; +#endif struct GameInfo { @@ -128,7 +142,9 @@ struct PlayerInfo boolean LevelSolved, GameOver; + boolean LevelSolved_GameWon; boolean LevelSolved_GameEnd; + boolean LevelSolved_PanelOff; boolean LevelSolved_SaveTape; boolean LevelSolved_SaveScore; @@ -194,6 +210,7 @@ struct PlayerInfo int lights_still_needed; int friends_still_needed; int key[MAX_NUM_KEYS]; + int num_white_keys; int dynabomb_count, dynabomb_size, dynabombs_left, dynabomb_xl; int shield_normal_time_left; int shield_deadly_time_left; @@ -212,6 +229,7 @@ void DEBUG_SetMaximumDynamite(); #endif void GetPlayerConfig(void); +int GetElementFromGroupElement(int); void DrawGameValue_Time(int); void DrawGameDoorValues(void); @@ -241,6 +259,8 @@ void PlayLevelSound_EM(int, int, int, int); void RaiseScore(int); void RaiseScoreElement(int); + +void RequestQuitGameExt(boolean, boolean, char *); void RequestQuitGame(boolean); unsigned int InitEngineRandom_RND(long);