Ahmed Adamjee
/
SnakeVSBlock
Snake vs Block Game to be run upon K64F.
Diff: MenuClasses/Settings/Settings.h
- Revision:
- 55:df0825049171
- Parent:
- 49:441c32f6603e
- Child:
- 60:d3a9e0e4a0de
diff -r 20abd16c7d74 -r df0825049171 MenuClasses/Settings/Settings.h --- a/MenuClasses/Settings/Settings.h Fri Apr 26 19:32:57 2019 +0000 +++ b/MenuClasses/Settings/Settings.h Sat Apr 27 18:56:30 2019 +0000 @@ -19,49 +19,52 @@ float * Implement(N5110 &lcd, Gamepad &pad, float cs); - /** Initialise Settings + /** Call Functions + * + * This function calls respective settings menu as per the contol entries by the user. + */ + + void CallFunctions(N5110 &lcd, Gamepad &pad, int st); + + /** Info * * 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 - */ - - void 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); + + void controlSensitivity(N5110 &lcd, Gamepad &pad); /** brigntness * * This function allows the user to set the screen brightness. */ - void contrast(N5110 &lcd, Gamepad &pad); + void brigntness(N5110 &lcd, Gamepad &pad); /** contrast * * This function allows the user to set the contrast of the screen. */ - void volume(N5110 &lcd, Gamepad &pad); + void contrast(N5110 &lcd, Gamepad &pad); /** volume * * This function allows the user to set the volume of the speaker. */ - - void showCredits(N5110 &lcd, Gamepad &pad); + void volume(N5110 &lcd, Gamepad &pad); /** showCredits * * This function allows the user to hide/show credits. */ + + void showCredits(N5110 &lcd, Gamepad &pad); + private: float cs_sc[2]; //this array helps to return Control speeds and Show credits parameters.