![](/media/cache/group/default_image.jpg.50x50_q85.jpg)
Adam Baker 201166301
Dependencies: mbed Gamepad N5110
Menu/Menu.h@36:6f452777b9ce, 2019-05-05 (annotated)
- Committer:
- adambakerwa
- Date:
- Sun May 05 14:58:20 2019 +0000
- Revision:
- 36:6f452777b9ce
- Child:
- 37:23b6312c8315
more menu work
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
adambakerwa | 36:6f452777b9ce | 1 | #ifndef MENU_H |
adambakerwa | 36:6f452777b9ce | 2 | #define MENU_H |
adambakerwa | 36:6f452777b9ce | 3 | |
adambakerwa | 36:6f452777b9ce | 4 | #include "mbed.h" |
adambakerwa | 36:6f452777b9ce | 5 | #include "Gamepad.h" |
adambakerwa | 36:6f452777b9ce | 6 | #include "N5110.h" |
adambakerwa | 36:6f452777b9ce | 7 | #include "BlockheadEngine.h" |
adambakerwa | 36:6f452777b9ce | 8 | #include "Runner.h" |
adambakerwa | 36:6f452777b9ce | 9 | #include "Levels.h" |
adambakerwa | 36:6f452777b9ce | 10 | |
adambakerwa | 36:6f452777b9ce | 11 | class Menu |
adambakerwa | 36:6f452777b9ce | 12 | { |
adambakerwa | 36:6f452777b9ce | 13 | public: |
adambakerwa | 36:6f452777b9ce | 14 | Menu(); |
adambakerwa | 36:6f452777b9ce | 15 | ~Menu(); |
adambakerwa | 36:6f452777b9ce | 16 | |
adambakerwa | 36:6f452777b9ce | 17 | void init(); |
adambakerwa | 36:6f452777b9ce | 18 | |
adambakerwa | 36:6f452777b9ce | 19 | int select_input(Gamepad &pad, N5110 &lcd); |
adambakerwa | 36:6f452777b9ce | 20 | |
adambakerwa | 36:6f452777b9ce | 21 | |
adambakerwa | 36:6f452777b9ce | 22 | private: |
adambakerwa | 36:6f452777b9ce | 23 | |
adambakerwa | 36:6f452777b9ce | 24 | void print_main_menu(N5110 &lcd); |
adambakerwa | 36:6f452777b9ce | 25 | |
adambakerwa | 36:6f452777b9ce | 26 | int _select; |
adambakerwa | 36:6f452777b9ce | 27 | int _input; |
adambakerwa | 36:6f452777b9ce | 28 | int _stop; |
adambakerwa | 36:6f452777b9ce | 29 | |
adambakerwa | 36:6f452777b9ce | 30 | }; |
adambakerwa | 36:6f452777b9ce | 31 | |
adambakerwa | 36:6f452777b9ce | 32 | #endif |