Mortal Kombat Game ELEC2645

Dependencies:   mbed N5110 ShiftReg Joystick

Committer:
ozy
Date:
Sat Apr 17 12:35:18 2021 +0000
Revision:
2:1703eb2a68f8
Parent:
1:3bdadf6f6dbd
Child:
3:1d99b6ad4f9e
Code AFTER interrupts (not very efficient)

Who changed what in which revision?

UserRevisionLine numberNew 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 2:1703eb2a68f8 11 void menu_selection(N5110 &lcd, InterruptIn &buttonA, InterruptIn &buttonB, InterruptIn &buttonC, InterruptIn &buttonD);
ozy 2:1703eb2a68f8 12 int get_user_input(int input, InterruptIn &buttonA, InterruptIn &buttonB, InterruptIn &buttonC, InterruptIn &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 2:1703eb2a68f8 22 void options_menu(N5110 &lcd, InterruptIn &buttonA, InterruptIn &buttonB, InterruptIn &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