Menu class used as basis for program; running the game and allowing the user to change the style and difficulty of the game via an interface.
Menu.h@1:21b7a5edb9c2, 2017-04-04 (annotated)
- Committer:
- el15mh
- Date:
- Tue Apr 04 10:30:00 2017 +0000
- Revision:
- 1:21b7a5edb9c2
- Parent:
- 0:b32f6570a26d
- Child:
- 2:917211a4551b
main with first animation trial;
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
el15mh | 0:b32f6570a26d | 1 | /* |
el15mh | 1:21b7a5edb9c2 | 2 | |
el15mh | 1:21b7a5edb9c2 | 3 | @file Menu.h |
el15mh | 1:21b7a5edb9c2 | 4 | |
el15mh | 1:21b7a5edb9c2 | 5 | (c) Max Houghton 02.14.17 |
el15mh | 1:21b7a5edb9c2 | 6 | Roller Maze Project, ELEC2645, Univeristy of Leeds |
el15mh | 1:21b7a5edb9c2 | 7 | |
el15mh | 1:21b7a5edb9c2 | 8 | */ |
el15mh | 0:b32f6570a26d | 9 | |
el15mh | 0:b32f6570a26d | 10 | #ifndef MENU_H |
el15mh | 0:b32f6570a26d | 11 | #define MENU_H |
el15mh | 0:b32f6570a26d | 12 | |
el15mh | 0:b32f6570a26d | 13 | #include "mbed.h" |
el15mh | 0:b32f6570a26d | 14 | #include "N5110.h" |
el15mh | 0:b32f6570a26d | 15 | #include "Gamepad.h" |
el15mh | 1:21b7a5edb9c2 | 16 | // #include "Maze.h" |
el15mh | 1:21b7a5edb9c2 | 17 | |
el15mh | 0:b32f6570a26d | 18 | |
el15mh | 0:b32f6570a26d | 19 | class Menu |
el15mh | 0:b32f6570a26d | 20 | { |
el15mh | 0:b32f6570a26d | 21 | public: |
el15mh | 0:b32f6570a26d | 22 | |
el15mh | 0:b32f6570a26d | 23 | Menu(); |
el15mh | 0:b32f6570a26d | 24 | ~Menu(); |
el15mh | 0:b32f6570a26d | 25 | |
el15mh | 1:21b7a5edb9c2 | 26 | void main(N5110 &lcd, Gamepad &pad); |
el15mh | 1:21b7a5edb9c2 | 27 | void options(N5110 &lcd, Gamepad &pad); |
el15mh | 1:21b7a5edb9c2 | 28 | void lcdSettings(N5110 &lcd, Gamepad &pad); |
el15mh | 1:21b7a5edb9c2 | 29 | void soundSettings(N5110 &lcd, Gamepad &pad); |
el15mh | 1:21b7a5edb9c2 | 30 | void difficultyOptions(N5110 &lcd, Gamepad &pad); |
el15mh | 1:21b7a5edb9c2 | 31 | void lcdColourOptions(N5110 &lcd, Gamepad &pad); |
el15mh | 1:21b7a5edb9c2 | 32 | void lcdInverseColour(N5110 &lcd, Gamepad &pad); |
el15mh | 1:21b7a5edb9c2 | 33 | void lcdBackgroundColour(N5110 &lcd, Gamepad &pad); |
el15mh | 0:b32f6570a26d | 34 | |
el15mh | 0:b32f6570a26d | 35 | private: |
el15mh | 0:b32f6570a26d | 36 | |
el15mh | 0:b32f6570a26d | 37 | }; |
el15mh | 0:b32f6570a26d | 38 | |
el15mh | 0:b32f6570a26d | 39 | #endif |