Mortal Kombat Game ELEC2645
Dependencies: mbed N5110 ShiftReg Joystick
Menu.h@1:3bdadf6f6dbd, 2021-04-17 (annotated)
- Committer:
- ozy
- Date:
- Sat Apr 17 11:38:39 2021 +0000
- Revision:
- 1:3bdadf6f6dbd
- Parent:
- 0:99b49fd71085
- Child:
- 2:1703eb2a68f8
Code Before adding interrupts
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
ozy | 0:99b49fd71085 | 1 | #ifndef MENU_H |
ozy | 0:99b49fd71085 | 2 | #define MENU_H |
ozy | 0:99b49fd71085 | 3 | #include <iostream> |
ozy | 0:99b49fd71085 | 4 | #include "mbed.h" |
ozy | 0:99b49fd71085 | 5 | #include "N5110.h" |
ozy | 0:99b49fd71085 | 6 | |
ozy | 0:99b49fd71085 | 7 | class Menu |
ozy | 0:99b49fd71085 | 8 | { |
ozy | 0:99b49fd71085 | 9 | public: |
ozy | 0:99b49fd71085 | 10 | Menu(); // constructor |
ozy | 1:3bdadf6f6dbd | 11 | void menu_selection(N5110 &lcd, DigitalIn &buttonA, DigitalIn &buttonB, DigitalIn &buttonC, DigitalIn &buttonD); // our case statement |
ozy | 1:3bdadf6f6dbd | 12 | int get_user_input(int input, DigitalIn &buttonA, DigitalIn &buttonB, DigitalIn &buttonC, DigitalIn &buttonD); |
ozy | 1:3bdadf6f6dbd | 13 | // void select_item(int input); |
ozy | 1:3bdadf6f6dbd | 14 | void draw_logo(N5110 &lcd, int x, int y); // draw logo on x y coordinates |
ozy | 0:99b49fd71085 | 15 | // below are the items from the GUI |
ozy | 0:99b49fd71085 | 16 | void main_menu(N5110 &lcd); |
ozy | 0:99b49fd71085 | 17 | void A_to_start(N5110 &lcd); |
ozy | 0:99b49fd71085 | 18 | void created_by(N5110 &lcd); |
ozy | 0:99b49fd71085 | 19 | void homescreen(N5110 &lcd); |
ozy | 0:99b49fd71085 | 20 | void play(N5110 &lcd); |
ozy | 0:99b49fd71085 | 21 | void tutorial(N5110 &lcd); |
ozy | 1:3bdadf6f6dbd | 22 | void options_menu(N5110 &lcd, DigitalIn &buttonA, DigitalIn &buttonB, DigitalIn &buttonC); |
ozy | 0:99b49fd71085 | 23 | void ingame_options_menu(); |
ozy | 0:99b49fd71085 | 24 | void select_map(); |
ozy | 0:99b49fd71085 | 25 | }; |
ozy | 0:99b49fd71085 | 26 | |
ozy | 0:99b49fd71085 | 27 | #endif |