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.
Diff: Menu.h
- Revision:
- 1:21b7a5edb9c2
- Parent:
- 0:b32f6570a26d
- Child:
- 2:917211a4551b
--- a/Menu.h Sun Apr 02 13:13:29 2017 +0000 +++ b/Menu.h Tue Apr 04 10:30:00 2017 +0000 @@ -1,11 +1,11 @@ /* - -@file Menu.h - -(c) Max Houghton 02.14.17 -Roller Maze Project, ELEC2645, Univeristy of Leeds - -*/ + + @file Menu.h + + (c) Max Houghton 02.14.17 + Roller Maze Project, ELEC2645, Univeristy of Leeds + + */ #ifndef MENU_H #define MENU_H @@ -13,7 +13,8 @@ #include "mbed.h" #include "N5110.h" #include "Gamepad.h" -#include "Maze.h" +// #include "Maze.h" + class Menu { @@ -22,25 +23,17 @@ Menu(); ~Menu(); - void main(); - void options(); - void lcdSettings(); - void soundSettings(); - void drawBox(); - void difficultyOptions(); - void colourOptions(); - void lcdInverseColour(); - void lcdBackgroundColour(); + void main(N5110 &lcd, Gamepad &pad); + void options(N5110 &lcd, Gamepad &pad); + void lcdSettings(N5110 &lcd, Gamepad &pad); + void soundSettings(N5110 &lcd, Gamepad &pad); + void difficultyOptions(N5110 &lcd, Gamepad &pad); + void lcdColourOptions(N5110 &lcd, Gamepad &pad); + void lcdInverseColour(N5110 &lcd, Gamepad &pad); + void lcdBackgroundColour(N5110 &lcd, Gamepad &pad); private: }; #endif - - - - - - - \ No newline at end of file