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: Menu/Menu.h
- Revision:
- 22:f1811602a817
- Parent:
- 21:32429d8e90ff
- Child:
- 27:da17a102c8d0
--- a/Menu/Menu.h Tue May 12 15:12:59 2020 +0000
+++ b/Menu/Menu.h Fri May 15 17:45:20 2020 +0000
@@ -20,19 +20,25 @@
*@param Gamepad's object
*/
Menu(N5110 &lcd,Gamepad &pad);
+
/**Make the inital screen
*/
void first_screen();
+
/**Make the menu screen*/
void menu_screen();
+
/**Get game speed
*@return the current game speed
*/
string get_game_speed();
- /**Meke the pause screen
+
+ /**Make the pause screen
+ *@param the players score
*@return chosen option
*/
- int pause_screen();
+ int pause_screen(int score);
+
/**Make the game over screen
*@param the players score
*@return the chosen option
@@ -48,6 +54,7 @@
int _arrow_pos_settings; //holds the setting screen arrow position
string _game_speed; //holds the game speed
char print_speed[6]; // holds the game speed in char
+ char buf_score[4];//holds the score
};
#endif
\ No newline at end of file