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
menu/Menu.h@14:66a1965318cb, 2020-05-19 (annotated)
- Committer:
- el18jgb
- Date:
- Tue May 19 09:11:48 2020 +0000
- Revision:
- 14:66a1965318cb
- Child:
- 16:7c612029d9c9
initial meanu, play and istruction working, will attempt to implement highscore using sd card, time permitting;
Who changed what in which revision?
| User | Revision | Line number | New contents of line |
|---|---|---|---|
| el18jgb | 14:66a1965318cb | 1 | #ifndef MENU_H |
| el18jgb | 14:66a1965318cb | 2 | #define MENU_H |
| el18jgb | 14:66a1965318cb | 3 | |
| el18jgb | 14:66a1965318cb | 4 | #include "mbed.h" |
| el18jgb | 14:66a1965318cb | 5 | #include "N5110.h" |
| el18jgb | 14:66a1965318cb | 6 | #include "Gamepad.h" |
| el18jgb | 14:66a1965318cb | 7 | |
| el18jgb | 14:66a1965318cb | 8 | |
| el18jgb | 14:66a1965318cb | 9 | /** menu Class |
| el18jgb | 14:66a1965318cb | 10 | @date april 2020 |
| el18jgb | 14:66a1965318cb | 11 | */ |
| el18jgb | 14:66a1965318cb | 12 | |
| el18jgb | 14:66a1965318cb | 13 | class Menu |
| el18jgb | 14:66a1965318cb | 14 | { |
| el18jgb | 14:66a1965318cb | 15 | |
| el18jgb | 14:66a1965318cb | 16 | public: |
| el18jgb | 14:66a1965318cb | 17 | Menu(); |
| el18jgb | 14:66a1965318cb | 18 | ~Menu(); |
| el18jgb | 14:66a1965318cb | 19 | void init(); |
| el18jgb | 14:66a1965318cb | 20 | int display(N5110 &lcd, Gamepad &pad); |
| el18jgb | 14:66a1965318cb | 21 | void draw(N5110 &lcd); |
| el18jgb | 14:66a1965318cb | 22 | void update(Gamepad &pad); |
| el18jgb | 14:66a1965318cb | 23 | void instructions(N5110 &lcd, Gamepad &pad); |
| el18jgb | 14:66a1965318cb | 24 | |
| el18jgb | 14:66a1965318cb | 25 | private: |
| el18jgb | 14:66a1965318cb | 26 | |
| el18jgb | 14:66a1965318cb | 27 | int option; |
| el18jgb | 14:66a1965318cb | 28 | |
| el18jgb | 14:66a1965318cb | 29 | int _height; |
| el18jgb | 14:66a1965318cb | 30 | int _width; |
| el18jgb | 14:66a1965318cb | 31 | int _x; |
| el18jgb | 14:66a1965318cb | 32 | int _y; |
| el18jgb | 14:66a1965318cb | 33 | |
| el18jgb | 14:66a1965318cb | 34 | }; |
| el18jgb | 14:66a1965318cb | 35 | |
| el18jgb | 14:66a1965318cb | 36 | |
| el18jgb | 14:66a1965318cb | 37 | #endif |