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@0:b32f6570a26d, 2017-04-02 (annotated)
- Committer:
- el15mh
- Date:
- Sun Apr 02 13:13:29 2017 +0000
- Revision:
- 0:b32f6570a26d
- Child:
- 1:21b7a5edb9c2
menu test using menu class;
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
el15mh | 0:b32f6570a26d | 1 | /* |
el15mh | 0:b32f6570a26d | 2 | |
el15mh | 0:b32f6570a26d | 3 | @file Menu.h |
el15mh | 0:b32f6570a26d | 4 | |
el15mh | 0:b32f6570a26d | 5 | (c) Max Houghton 02.14.17 |
el15mh | 0:b32f6570a26d | 6 | Roller Maze Project, ELEC2645, Univeristy of Leeds |
el15mh | 0:b32f6570a26d | 7 | |
el15mh | 0:b32f6570a26d | 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 | 0:b32f6570a26d | 16 | #include "Maze.h" |
el15mh | 0:b32f6570a26d | 17 | |
el15mh | 0:b32f6570a26d | 18 | class Menu |
el15mh | 0:b32f6570a26d | 19 | { |
el15mh | 0:b32f6570a26d | 20 | public: |
el15mh | 0:b32f6570a26d | 21 | |
el15mh | 0:b32f6570a26d | 22 | Menu(); |
el15mh | 0:b32f6570a26d | 23 | ~Menu(); |
el15mh | 0:b32f6570a26d | 24 | |
el15mh | 0:b32f6570a26d | 25 | void main(); |
el15mh | 0:b32f6570a26d | 26 | void options(); |
el15mh | 0:b32f6570a26d | 27 | void lcdSettings(); |
el15mh | 0:b32f6570a26d | 28 | void soundSettings(); |
el15mh | 0:b32f6570a26d | 29 | void drawBox(); |
el15mh | 0:b32f6570a26d | 30 | void difficultyOptions(); |
el15mh | 0:b32f6570a26d | 31 | void colourOptions(); |
el15mh | 0:b32f6570a26d | 32 | void lcdInverseColour(); |
el15mh | 0:b32f6570a26d | 33 | void lcdBackgroundColour(); |
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 |
el15mh | 0:b32f6570a26d | 40 | |
el15mh | 0:b32f6570a26d | 41 | |
el15mh | 0:b32f6570a26d | 42 | |
el15mh | 0:b32f6570a26d | 43 | |
el15mh | 0:b32f6570a26d | 44 | |
el15mh | 0:b32f6570a26d | 45 | |
el15mh | 0:b32f6570a26d | 46 |