zhenye yang
/
el17zy
Yang Zhenye 201199680
Diff: Menu/Menu.h
- Revision:
- 5:fcad75e9b9e1
- Parent:
- 4:eb8dca1dc341
- Child:
- 9:a5a82b3d1102
--- a/Menu/Menu.h Wed May 13 14:55:07 2020 +0000 +++ b/Menu/Menu.h Thu May 14 14:13:03 2020 +0000 @@ -8,25 +8,33 @@ struct State { int output; - int next_state[4]; } - + int next_state[4]; }; + class Menu { public: + // Constructor and destructor. + /** + * @brief Constructor @details Non user specified. + */ Menu(); + /** + * @brief Destructor @details Non user specified. + */ ~Menu(); void init(); - void run(N5110 &lcd, Gamepad &gamepad); + void run_engine(N5110 &lcd, Gamepad &gamepad); + void run_game(N5110 &lcd, Gamepad &gamepad); private: - void dispaly_page1(); - void run_engine(N5110 &lcd, Gamepad &gamepad); - void display_page2(); - void display_page3(); - void output(); - void input(bool start, bool back, bool x); + void display_page1(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); int _output; int _state; int _input; + RooneyEngine _engine; }; #endif \ No newline at end of file