![](/media/cache/profiles/LinkedIn_0NghoZJ.jpeg.50x50_q85.jpg)
Snake vs Block Game to be run upon K64F.
Diff: MenuClasses/Settings/Settings.h
- Revision:
- 43:233f93860d08
- Parent:
- 30:461231877c89
- Child:
- 49:441c32f6603e
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/MenuClasses/Settings/Settings.h Thu Apr 25 18:12:17 2019 +0000 @@ -0,0 +1,70 @@ +#ifndef Settings_H +#define Settings_H + +#include "mbed.h" +#include "N5110.h" +#include "Gamepad.h" + +class Settings +{ + public: + + Settings(); + ~Settings(); + + /** Implement Settings + * + * This function is used to configure settings. + */ + + float * Implement(N5110 &lcd, Gamepad &pad, int st, float cs); + + /** Initialise Settings + * + * This function shows the info for using settings. + */ + + void info(N5110 &lcd, Gamepad &pad); + + /** info + * + * This function just instructs the user on how to use settings + */ + + float controlSensitivity(N5110 &lcd, Gamepad &pad); + + /** controlSensitivity + * + * This function essentialy enables the user to select the sensitivity of the game controls + */ + void brigntness(N5110 &lcd, Gamepad &pad); + + /** brigntness + * + * This function allows the user to set the screen brightness. + */ + void contrast(N5110 &lcd, Gamepad &pad); + + /** contrast + * + * This function allows the user to set the contrast of the screen. + */ + void volume(N5110 &lcd, Gamepad &pad); + + /** volume + * + * This function allows the user to set the volume of the speaker. + */ + + int showCredits(N5110 &lcd, Gamepad &pad); + + /** showCredits + * + * This function allows the user to hide/show credits. + */ + + float cs_sc[2]; //this array helps to return Control speeds and Show credits parameters. + + +}; +#endif \ No newline at end of file