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: Pause/Pause.h
- Revision:
- 22:4e305ff8a050
- Parent:
- 21:9d1447765ee1
- Child:
- 29:42651f87522b
--- a/Pause/Pause.h Wed Apr 17 15:11:54 2019 +0000 +++ b/Pause/Pause.h Thu Apr 18 11:50:53 2019 +0000 @@ -25,17 +25,22 @@ class Pause { public: - -void init(); -int pause_menu(Gamepad &gamepad, N5110 &lcd, int fps, int frame, Mode mode); + //constructor + Pause(); + //destructor + ~Pause(); + //initialiser + void init(); + //accessor + int pause_menu(Gamepad &gamepad, N5110 &lcd, int fps, int frame, Mode mode); private: -void display_pause_options(N5110 &lcd); -PauseOption pause_selection(Gamepad &gamepad, N5110 &lcd); -void brickbreaker_help(Gamepad &gamepad, N5110 &lcd); -void classic_help(Gamepad &gamepad, N5110 &lcd); -PauseOption _state; -int _next_state; + void display_pause_options(N5110 &lcd); + PauseOption pause_selection(Gamepad &gamepad, N5110 &lcd); + void brickbreaker_help(Gamepad &gamepad, N5110 &lcd); + void classic_help(Gamepad &gamepad, N5110 &lcd); + PauseOption _state; + int _next_state; }; #endif \ No newline at end of file