![](/media/cache/group/default_image.jpg.50x50_q85.jpg)
Adam Baker 201166301
Dependencies: mbed Gamepad N5110
Menu/Menu.h@37:23b6312c8315, 2019-05-05 (annotated)
- Committer:
- adambakerwa
- Date:
- Sun May 05 17:34:55 2019 +0000
- Revision:
- 37:23b6312c8315
- Parent:
- 36:6f452777b9ce
- Child:
- 38:51ed5820ffe5
menu success!!!
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 | 37:23b6312c8315 | 17 | void title_intro(N5110 &lcd, Gamepad &pad); |
adambakerwa | 37:23b6312c8315 | 18 | int press_start(N5110 &lcd, Gamepad &pad); |
adambakerwa | 36:6f452777b9ce | 19 | void init(); |
adambakerwa | 36:6f452777b9ce | 20 | |
adambakerwa | 36:6f452777b9ce | 21 | int select_input(Gamepad &pad, N5110 &lcd); |
adambakerwa | 36:6f452777b9ce | 22 | |
adambakerwa | 36:6f452777b9ce | 23 | |
adambakerwa | 36:6f452777b9ce | 24 | private: |
adambakerwa | 36:6f452777b9ce | 25 | |
adambakerwa | 36:6f452777b9ce | 26 | void print_main_menu(N5110 &lcd); |
adambakerwa | 36:6f452777b9ce | 27 | |
adambakerwa | 37:23b6312c8315 | 28 | void B(int x, int y, N5110 &lcd); |
adambakerwa | 37:23b6312c8315 | 29 | void BL(int x, int y, N5110 &lcd); |
adambakerwa | 37:23b6312c8315 | 30 | void BLO(int x, int y, N5110 &lcd); |
adambakerwa | 37:23b6312c8315 | 31 | void BLOC(int x, int y, N5110 &lcd); |
adambakerwa | 37:23b6312c8315 | 32 | void BLOCK(int x, int y, N5110 &lcd); |
adambakerwa | 37:23b6312c8315 | 33 | void BLOCK_H(int x, int y, N5110 &lcd); |
adambakerwa | 37:23b6312c8315 | 34 | void BLOCK_HE(int x, int y, N5110 &lcd); |
adambakerwa | 37:23b6312c8315 | 35 | void BLOCK_HEA(int x, int y, N5110 &lcd); |
adambakerwa | 37:23b6312c8315 | 36 | void BLOCK_HEAD(int x, int y, N5110 &lcd); |
adambakerwa | 37:23b6312c8315 | 37 | |
adambakerwa | 37:23b6312c8315 | 38 | int _start; |
adambakerwa | 37:23b6312c8315 | 39 | int _count; |
adambakerwa | 37:23b6312c8315 | 40 | |
adambakerwa | 36:6f452777b9ce | 41 | int _select; |
adambakerwa | 36:6f452777b9ce | 42 | int _input; |
adambakerwa | 36:6f452777b9ce | 43 | int _stop; |
adambakerwa | 37:23b6312c8315 | 44 | bool _flash; |
adambakerwa | 36:6f452777b9ce | 45 | |
adambakerwa | 36:6f452777b9ce | 46 | }; |
adambakerwa | 36:6f452777b9ce | 47 | |
adambakerwa | 36:6f452777b9ce | 48 | #endif |