Ben Evans / Mbed 2 deprecated Defender_Game

Dependencies:   mbed

Revision:
76:6daba3002424
Parent:
74:6827b43c689d
Child:
80:870bc6b4bf08
--- a/GameEngine/GameEngine.h	Sat May 23 22:59:15 2020 +0000
+++ b/GameEngine/GameEngine.h	Sun May 24 18:38:50 2020 +0000
@@ -18,6 +18,7 @@
 #include "SavedGames.h"
 #include "Settings.h"
 #include "Sounds.h"
+#include "HighScore.h"
 
 #include <vector> 
   
@@ -96,6 +97,16 @@
         /** Runs save a game screen */
         void run_save_a_game();
         
+    // Menu High Score 
+        /** Runs high score screen */
+        void run_highscore();
+         
+        /** Calculates if the current end game score is a new high score and 
+         * saves it if it is 
+         * @return new_high_score @detials bool true if there is new high score
+         */
+        bool calculate_new_score();
+        
     //Spaceship Control      
         /** Gets joystick direction from gamepad and stores it in d_ */
         void read_joystick_direction();
@@ -281,6 +292,9 @@
         
         /** Define SavedGames object */
         SavedGames saved;
+        
+        /** Define HighScore object */
+        HighScore h_score;
 };
  
 #endif
\ No newline at end of file