moved flags and values for "level solved" from player to game structure
[rocksndiamonds.git] / src / game.h
index 553ec4b7498b516879a041fafb2f736e304189f7..5b3c02d6c7174b82b79cdf877ec62fcff614cfe9 100644 (file)
@@ -221,6 +221,18 @@ struct GameInfo
 
   // values for game engine snapshot control
   struct GameSnapshotInfo snapshot;
+
+  // values for handling states for solved level
+  boolean LevelSolved;
+
+  boolean LevelSolved_GameWon;
+  boolean LevelSolved_GameEnd;
+  boolean LevelSolved_SaveTape;
+  boolean LevelSolved_SaveScore;
+
+  int LevelSolved_CountingTime;
+  int LevelSolved_CountingScore;
+  int LevelSolved_CountingHealth;
 };
 
 struct PlayerInfo
@@ -268,16 +280,7 @@ struct PlayerInfo
 
   boolean gravity;
 
-  boolean LevelSolved, GameOver;
-
-  boolean LevelSolved_GameWon;
-  boolean LevelSolved_GameEnd;
-  boolean LevelSolved_SaveTape;
-  boolean LevelSolved_SaveScore;
-
-  int LevelSolved_CountingTime;
-  int LevelSolved_CountingScore;
-  int LevelSolved_CountingHealth;
+  boolean GameOver;
 
   int last_move_dir;
 
@@ -347,7 +350,8 @@ struct PlayerInfo
   int health_final;
 
   int gems_still_needed;
-  int sokobanfields_still_needed;
+  int sokoban_fields_still_needed;
+  int sokoban_objects_still_needed;
   int lights_still_needed;
   int players_still_needed;
   int friends_still_needed;