Ben Evans / Mbed 2 deprecated Defender_Game

Dependencies:   mbed

Revision:
61:7c4ec680a428
Parent:
60:55fdc6bb29b9
Child:
63:4631447440cf
--- a/SavedGames/SavedGames.h	Wed May 20 18:14:42 2020 +0000
+++ b/SavedGames/SavedGames.h	Wed May 20 19:50:11 2020 +0000
@@ -53,11 +53,12 @@
          */
         void add_saved_data(SDFileSystem &sd,SavedGamesData data, N5110 &lcd); 
         
-        /** Reads saved data to sd card 
+        /** Reads saved data from sd cardand return it as a struct
          * @param sd @details sd card object
          * @param lcd @details N5110 object
+         * @return data @details SavedGamesData struct
          */
-        void read_saved_data(SDFileSystem &sd, N5110 &lcd);
+        SavedGamesData read_saved_data(SDFileSystem &sd, N5110 &lcd);
         
         /** Scrolls through the diffent saved games parts
          * @param d_ @details Direction of joystick
@@ -69,13 +70,15 @@
          */
         void display_saved_games(N5110 &lcd);
         
-         /** Draws the select save to save to screen
+         /** Draws the select save game select screen
          * @param lcd @details N5110 object
          */
         void save_game_screen(N5110 &lcd);
         
-        /** Vector to store saved game data*/
-        std::vector<SavedGamesData> saved_data_vector;
+         /** Draws no saved files screen
+         * @param lcd @details N5110 object
+         */
+        void no_saved_files(N5110 &lcd);
     
     // Accessors and mutators --------------------------------------------------
         
@@ -98,5 +101,7 @@
         
         /** Variable for which vector data to select */
         int display_data_number_;
+        
+        
 };
 #endif
\ No newline at end of file