added flags for "level solved" and "game over" to EM engine
[rocksndiamonds.git] / src / game_em / export.h
index ae5f9a1b468cd2a922f7ffa42bcf3b4421e776f6..45cbd2503908eefb81ed4369089b67bd95f7950a 100644 (file)
@@ -1,13 +1,13 @@
 #ifndef EXPORT_H
 #define EXPORT_H
 
-/* ========================================================================= */
-/* functions and definitions exported from game_em to main program           */
-/* ========================================================================= */
+// ============================================================================
+// functions and definitions exported from game_em to main program
+// ============================================================================
 
-/* ------------------------------------------------------------------------- */
-/* constant definitions                                                      */
-/* ------------------------------------------------------------------------- */
+// ----------------------------------------------------------------------------
+// constant definitions
+// ----------------------------------------------------------------------------
 
 /* define these for backwards compatibility */
 #define EM_ENGINE_BAD_ROLL
@@ -542,9 +542,9 @@ enum
 };
 
 
-/* ------------------------------------------------------------------------- */
-/* data structure definitions                                                */
-/* ------------------------------------------------------------------------- */
+// ----------------------------------------------------------------------------
+// data structure definitions
+// ----------------------------------------------------------------------------
 
 struct LEVEL
 {
@@ -664,6 +664,9 @@ struct GlobalInfo_EM
 
 struct GameInfo_EM
 {
+  boolean level_solved;
+  boolean game_over;
+
   boolean any_player_moving;
   boolean any_player_snapping;
 
@@ -723,9 +726,9 @@ struct EngineSnapshotInfo_EM
 };
 
 
-/* ------------------------------------------------------------------------- */
-/* exported functions                                                        */
-/* ------------------------------------------------------------------------- */
+// ----------------------------------------------------------------------------
+// exported functions
+// ----------------------------------------------------------------------------
 
 extern struct GlobalInfo_EM global_em_info;
 extern struct GameInfo_EM game_em;
@@ -762,4 +765,4 @@ boolean checkIfAllPlayersFitToScreen(void);
 void tab_generate(void);
 void tab_generate_graphics_info_em(void);
 
-#endif /* EXPORT_H */
+#endif // EXPORT_H