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.
Dependencies: mbed
Highscore.h
00001 #ifndef HIGHSCORE_H 00002 #define HIGHSCORE_H 00003 00004 #include "mbed.h" 00005 #include "N5110.h" 00006 #include "Gamepad.h" 00007 #include "SDFileSystem.h" 00008 00009 /** highscore Class 00010 * @brief reads and writes highscore 00011 * @author Joe Body, University of Leeds 00012 * @date May 2020 00013 */ 00014 00015 class Highscore 00016 { 00017 00018 public: 00019 00020 /** Constructor */ 00021 Highscore(); 00022 00023 /** Destructor */ 00024 ~Highscore(); 00025 00026 // Accessors and mutators 00027 00028 /** Gets the current highscore 00029 * @param sd @details SD card object 00030 * @return current_menu_part_ 00031 */ 00032 int geths(SDFileSystem &sd); 00033 00034 /** Set a new Highscore 00035 * @param sd @details SD card object 00036 * @param integer x @details new high score 00037 */ 00038 void seths(SDFileSystem &sd, int x); 00039 00040 private: 00041 00042 /** value stored in the sd card */ 00043 int stored; 00044 00045 }; 00046 00047 #endif
Generated on Tue Jul 12 2022 18:29:13 by
 1.7.2
 1.7.2