Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Diff: SavedGames/SavedGames.h
- Revision:
- 59:0b2e43312d6b
- Parent:
- 54:d46459104dea
- Child:
- 60:55fdc6bb29b9
--- a/SavedGames/SavedGames.h Tue May 19 20:21:41 2020 +0000 +++ b/SavedGames/SavedGames.h Wed May 20 17:47:18 2020 +0000 @@ -51,7 +51,7 @@ * @param data @details SavedGamesData struct * @param lcd @details N5110 object */ - void add_saved_data(SDFileSystem &sd, SavedGamesData data, N5110 &lcd); + void add_saved_data(SDFileSystem &sd,SavedGamesData data, N5110 &lcd); /** Reads saved data to sd card * @param sd @details sd card object @@ -60,15 +60,17 @@ void read_saved_data(SDFileSystem &sd, N5110 &lcd); /** Scrolls through the diffent saved games parts - * @param pad @details Gamepad object * @param d_ @details Direction of joystick */ - void saved_games_scroll(Gamepad &pad, Direction d_); + void saved_games_scroll(Direction d_); /** Draws the saved game screen * @param lcd @details N5110 object */ void display_saved_games(N5110 &lcd); + + /** Vector to store saved game data*/ + std::vector<SavedGamesData> saved_data_vector; // Accessors and mutators -------------------------------------------------- @@ -77,6 +79,11 @@ */ bool get_error(); + /** Gets the displayed saved game number + * @return display_data_number_; + */ + int get_display_data_number(); + private: // Varibles ---------------------------------------------------------------- @@ -84,12 +91,6 @@ /** Flag for error, true = error */ bool error_; - /** Vector to store saved game data*/ - std::vector<SavedGamesData> saved_data_vector; - - /** Struct of game data types */ - //SavedGamesData data; - /** Variable for which vector data to select */ int display_data_number_; };