ELEC2645 (2019/20) / Mbed 2 deprecated ELEC2645_Project_el18jgb

Dependencies:   mbed

Embed: (wiki syntax)

« Back to documentation index

Show/hide line numbers Highscore.h Source File

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