Ben Evans / Mbed 2 deprecated Defender_Game

Dependencies:   mbed

Revision:
78:6a6c93c19ed1
Parent:
76:6daba3002424
Child:
79:66bcf8fa2d2d
--- a/HighScore/HighScore.h	Sun May 24 19:20:23 2020 +0000
+++ b/HighScore/HighScore.h	Sun May 24 19:31:32 2020 +0000
@@ -7,13 +7,14 @@
 #include "Gamepad.h"
 #include "SDFileSystem.h"
 #include "Sprites.h"
+#include "SDErrors.h"
 
 /** High Score class
  * @brief Displayes the highest score
  * @author Benjamin Evans, University of Leeds
  * @date May 2020
  */      
-class  HighScore{
+class  HighScore:public SDErrors{
     public:
         /** Constructor */
          HighScore();
@@ -44,19 +45,6 @@
          */
         void no_high_scores(N5110 &lcd);
         
-        
-    // Accessors and mutators --------------------------------------------------
-        
-        /** Gets error flag
-         * @return error_;
-         */
-        bool get_error();
-        
-         /** set error
-         * @param error;
-         */
-        void set_error(bool error);
-        
     private:   
     // Function prototypes -----------------------------------------------------
         
@@ -65,11 +53,5 @@
          */
         void error_open_file(N5110 &lcd);
         
- 
-    // Varibles ---------------------------------------------------------------- 
-        
-        /** Flag for error, true = error */
-        bool error_;
-        
 };
 #endif
\ No newline at end of file