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.
Dependencies: mbed wave_player 4DGL-uLCD-SE MMA8452
Diff: startmenu.h
- Revision:
- 4:cdc54191ff07
- Parent:
- 2:0876296d9473
- Child:
- 5:93a4c396c1af
diff -r 289762133fd6 -r cdc54191ff07 startmenu.h --- a/startmenu.h Wed Apr 18 20:18:51 2018 +0000 +++ b/startmenu.h Tue May 22 19:13:03 2018 +0000 @@ -1,6 +1,30 @@ #ifndef STARTMENU_H #define STARTMENU_H -int menu(); +class Menu +{ +private: + int button_presses; + int num_options; + //std::vector <int> option_colors; + //std::vector <int> option_enable; + int b2presses; + int start; + int quit; + int start_color; + int quit_color; + int third_color; + int current_item; + +public: + Menu(int); + int get_action(GameInputs); + int update(int); + void draw(int); + int display(); + int o_instructions(); + //you can just implement the options in the new classes + //void add_option(char[], Func*); //second argument needs to be a function pointer +}; #endif //STARTMENU_H \ No newline at end of file