Yang Zhenye 201199680
Dependencies: mbed
Diff: Menu/Menu.h
- Revision:
- 9:a5a82b3d1102
- Parent:
- 5:fcad75e9b9e1
--- a/Menu/Menu.h Thu May 14 18:30:55 2020 +0000 +++ b/Menu/Menu.h Fri May 15 07:27:23 2020 +0000 @@ -21,13 +21,27 @@ * @brief Destructor @details Non user specified. */ ~Menu(); + // Mutators + /** + * @brief Initialises the Menu. + */ void init(); + /** + * @brief Runs the menu and a state machine. + * @param &lcd @details The lcd object from the N5110 class + * @param &gamepad @details The gamepad object from Gamepad class + */ void run_engine(N5110 &lcd, Gamepad &gamepad); + /** + * @brief Runs the game. + * @param &lcd @details The lcd object from the N5110 class + * @param &gamepad @details The gamepad object from Gamepad class + */ void run_game(N5110 &lcd, Gamepad &gamepad); private: void display_page1(N5110 &lcd, Gamepad &gamepad); - void display_page2(N5110 &lcd, Gamepad &gamepad); + // void display_page2(N5110 &lcd, Gamepad &gamepad); void display_page3(N5110 &lcd, Gamepad &gamepad); void get_output(N5110 &lcd, Gamepad &gamepad); void get_input(bool start, bool back, bool x);