Mortal Kombat Game ELEC2645

Dependencies:   mbed N5110 ShiftReg Joystick

Committer:
ozy
Date:
Mon Apr 19 18:38:59 2021 +0000
Revision:
3:1d99b6ad4f9e
Parent:
2:1703eb2a68f8
Child:
20:4ca04fd0965a
Code after new fighter class

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 3:1d99b6ad4f9e 11 void menu_selection(N5110 &lcd, DigitalIn &buttonA, DigitalIn &buttonB, DigitalIn &buttonC, DigitalIn &buttonD); // our case statement
ozy 3:1d99b6ad4f9e 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 3:1d99b6ad4f9e 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