Ben Evans / Mbed 2 deprecated Defender_Game

Dependencies:   mbed

Revision:
52:feb8cf28bcff
Parent:
51:35cb8e604b72
Child:
53:01be7898c23f
--- a/SavedGames/SavedGames.h	Tue May 19 16:46:40 2020 +0000
+++ b/SavedGames/SavedGames.h	Tue May 19 17:08:06 2020 +0000
@@ -9,10 +9,10 @@
 #include <vector>
 
 struct SavedGamesData{
-    int score; /**< Bool to draw circle one */
-    int lives; /**< Bool to draw circle two */
-    int smart_bombs; /**< Fill type of circle one */
-    int alien_number; /**< Fill type of circle two */
+    int score; /**< Score variable */
+    int lives; /**< lives left variable */
+    int smart_bombs; /**< smart_bombs left variable */
+    int alien_number; /**< number of alien on screen variable*/
 };
 
 /** SavedGames class
@@ -51,7 +51,7 @@
          * @param SavedGamesData @details Saved game data struct
          * @param sd @details sd card object
          */
-        void add_saved_data(SDFileSystem &sd,struct SavedGamesData); 
+        void add_saved_data(SDFileSystem &sd,SavedGamesData data, N5110 &lcd); 
     
     // Accessors and mutators --------------------------------------------------
         
@@ -69,5 +69,7 @@
         
         /** Vector to store saved game data*/
         std::vector<SavedGamesData> saved_data_vector;
+        
+        SavedGamesData data;
 };
 #endif
\ No newline at end of file