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.
Menu/Menu.h@19:913d123554ee, 2020-05-09 (annotated)
- Committer:
- thestudent
- Date:
- Sat May 09 10:09:35 2020 +0000
- Revision:
- 19:913d123554ee
- Parent:
- 18:8f7291885e19
- Child:
- 21:32429d8e90ff
The entire design finished. Need to revise ball creation;
Who changed what in which revision?
| User | Revision | Line number | New contents of line |
|---|---|---|---|
| thestudent | 16:e2aaef863d7c | 1 | #ifndef MENU_H |
| thestudent | 16:e2aaef863d7c | 2 | #define MENU_H |
| thestudent | 17:cb208b15be5c | 3 | #include "N5110.h" |
| thestudent | 17:cb208b15be5c | 4 | #include "Gamepad.h" |
| thestudent | 17:cb208b15be5c | 5 | #include "Objects.h" |
| thestudent | 17:cb208b15be5c | 6 | class Menu |
| thestudent | 17:cb208b15be5c | 7 | { |
| thestudent | 17:cb208b15be5c | 8 | public: |
| thestudent | 18:8f7291885e19 | 9 | //functions |
| thestudent | 17:cb208b15be5c | 10 | Menu(N5110 &lcd,Gamepad &pad); |
| thestudent | 17:cb208b15be5c | 11 | void first_screen(); |
| thestudent | 18:8f7291885e19 | 12 | void menu_screen(); |
| thestudent | 18:8f7291885e19 | 13 | string get_game_speed(); |
| thestudent | 18:8f7291885e19 | 14 | int pause_screen(); |
| thestudent | 19:913d123554ee | 15 | int game_over_screen(int score); |
| thestudent | 18:8f7291885e19 | 16 | //variables |
| thestudent | 18:8f7291885e19 | 17 | char print_speed[6]; |
| thestudent | 18:8f7291885e19 | 18 | |
| thestudent | 17:cb208b15be5c | 19 | private: |
| thestudent | 18:8f7291885e19 | 20 | //classes |
| thestudent | 17:cb208b15be5c | 21 | N5110 _lcd; |
| thestudent | 17:cb208b15be5c | 22 | Gamepad _pad; |
| thestudent | 18:8f7291885e19 | 23 | //variables |
| thestudent | 18:8f7291885e19 | 24 | int _arrow_pos; |
| thestudent | 18:8f7291885e19 | 25 | int _arrow_pos_settings; |
| thestudent | 18:8f7291885e19 | 26 | string _game_speed; |
| thestudent | 16:e2aaef863d7c | 27 | }; |
| thestudent | 16:e2aaef863d7c | 28 | |
| thestudent | 16:e2aaef863d7c | 29 | #endif |