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: GameEngine/GameEngine.h
- Revision:
- 56:663d0546c235
- Parent:
- 55:c04568b25617
- Child:
- 57:d4ce42c24561
--- a/GameEngine/GameEngine.h Tue May 19 18:52:54 2020 +0000
+++ b/GameEngine/GameEngine.h Tue May 19 19:36:56 2020 +0000
@@ -15,6 +15,7 @@
#include "Menu.h"
#include "FXOS8700CQ.h"
#include "SDFileSystem.h"
+#include "SavedGames.h"
#include <vector>
@@ -53,15 +54,18 @@
/** Runs the menu */
void run_menu();
- /** Runs the play game part of menu */
+ /** Runs the play game */
void run_play();
- /** Runs settings part of games */
+ /** Runs settings screen*/
void run_settings();
- /** Runs settings part of games*/
+ /** Runs saved game screen */
void run_saved_games();
+ /** Runs the paused screen */
+ void run_paused_game();
+
/** Draws the pause screen*/
void draw_pause_screen();
@@ -147,6 +151,12 @@
/** Volatile flag for ISR */
volatile int lcd_frame_time_flag_;
+
+ /** Paused flag */
+ bool paused_flag_;
+
+ /** Flag to ecite the play part of the game */
+ bool exit_flag_ ;
//Spacehip Control
/** Define points*/
@@ -227,7 +237,10 @@
/** Define Ticker object */
Ticker ticker;
-
+
+ /** Define SavedGames object */
+ SavedGames saved;
+
};
#endif
\ No newline at end of file