added functions to check if game is over (and solved or not) (not used yet)
[rocksndiamonds.git] / src / game.h
index b6e9f5b0ee629dd90784d768a0a139f4c477e3f6..5fab8390aa479813373faab3268edc2890632152 100644 (file)
@@ -100,6 +100,9 @@ struct GamePanelInfo
   struct TextPosInfo player_name;
   struct TextPosInfo level_name;
   struct TextPosInfo level_author;
+
+  /* value to determine if panel will be updated or not */
+  boolean active;
 };
 
 struct GameButtonInfo
@@ -205,6 +208,9 @@ struct GameInfo
   /* trigger message to ask for restarting the game */
   char *restart_game_message;
 
+  /* values for special request dialog control */
+  boolean request_active;
+
   /* values for special game control */
   int centered_player_nr;
   int centered_player_nr_next;
@@ -266,7 +272,6 @@ struct PlayerInfo
 
   boolean LevelSolved_GameWon;
   boolean LevelSolved_GameEnd;
-  boolean LevelSolved_PanelOff;
   boolean LevelSolved_SaveTape;
   boolean LevelSolved_SaveScore;
 
@@ -413,6 +418,10 @@ void RequestQuitGameExt(boolean, boolean, char *);
 void RequestQuitGame(boolean);
 void RequestRestartGame(char *);
 
+boolean checkGameSolved(void);
+boolean checkGameFailed(void);
+boolean checkGameEnded(void);
+
 unsigned int InitEngineRandom_RND(int);
 unsigned int RND(int);