ELEC2645 (2017/18) / Mbed OS el16ajm
Committer:
Andrew_M
Date:
Sun May 06 22:42:49 2018 +0000
Revision:
10:279d3775d52c
Parent:
9:fe86ddbf7799
Child:
12:d3eef5ea3f43
Menu now has sub menus, still no impact on game although menu variables are ready to be used

Who changed what in which revision?

UserRevisionLine numberNew contents of line
Andrew_M 8:9d01fd4a63ad 1 #include "mbed.h"
Andrew_M 8:9d01fd4a63ad 2 #include "N5110.h"
Andrew_M 8:9d01fd4a63ad 3 #include "Gamepad.h"
Andrew_M 8:9d01fd4a63ad 4
Andrew_M 9:fe86ddbf7799 5 class Menu
Andrew_M 8:9d01fd4a63ad 6 {
Andrew_M 8:9d01fd4a63ad 7 public:
Andrew_M 8:9d01fd4a63ad 8
Andrew_M 8:9d01fd4a63ad 9 Menu();
Andrew_M 8:9d01fd4a63ad 10 ~Menu();
Andrew_M 8:9d01fd4a63ad 11 void init();
Andrew_M 9:fe86ddbf7799 12 void read_input(Gamepad &pad);
Andrew_M 9:fe86ddbf7799 13 void update();
Andrew_M 9:fe86ddbf7799 14 void draw(N5110 &lcd);
Andrew_M 9:fe86ddbf7799 15 bool started();
Andrew_M 10:279d3775d52c 16 int getDif();
Andrew_M 8:9d01fd4a63ad 17
Andrew_M 8:9d01fd4a63ad 18
Andrew_M 8:9d01fd4a63ad 19 private:
Andrew_M 10:279d3775d52c 20
Andrew_M 10:279d3775d52c 21 char _d;
Andrew_M 10:279d3775d52c 22 bool _start;
Andrew_M 10:279d3775d52c 23 int _mainSelection;
Andrew_M 10:279d3775d52c 24 int _difSelection;
Andrew_M 10:279d3775d52c 25 int _lvlSelection;
Andrew_M 10:279d3775d52c 26 bool _buttonPressed;
Andrew_M 10:279d3775d52c 27 string _menuScreen;
Andrew_M 10:279d3775d52c 28 int _difficulty;
Andrew_M 10:279d3775d52c 29 int _level;
Andrew_M 10:279d3775d52c 30
Andrew_M 10:279d3775d52c 31
Andrew_M 8:9d01fd4a63ad 32 };