Ben Evans University Second Year Project. Game Called Defender.
Settings Class Reference
#include <Settings.h>
Public Member Functions | |
| Settings () | |
| Constructor. | |
| ~Settings () | |
| Destructor. | |
| void | init () |
| Initialises Settings. | |
| void | display_settings_screen (N5110 &lcd, float pot_read) |
| Draws the settings screen. | |
| void | change_setting (bool pressed) |
| Changes the current displayed setting part. | |
| void | settings_scroll (Direction d_) |
| Scrolls through the different settings parts. | |
| ControlsParts | get_control_method () |
| Return the control method that set-in setting menu. | |
| SoundParts | get_sound_method () |
| Return the sound method that set-in setting menu. | |
| MusicParts | get_music_method () |
| Return the music method that set-in setting menu. | |
| SettingsParts | get_displayed_settings_part () |
| Return the setting part that is displayed. | |
Detailed Description
Settings class.
Change change contrast, control method
- Date:
- May 2020
Definition at line 60 of file Settings.h.
Constructor & Destructor Documentation
| Settings | ( | ) |
Constructor.
Definition at line 51 of file Settings.cpp.
| ~Settings | ( | ) |
Destructor.
Definition at line 55 of file Settings.cpp.
Member Function Documentation
| void change_setting | ( | bool | pressed ) |
Changes the current displayed setting part.
- Parameters:
-
pressed Buttom A pressed
Definition at line 108 of file Settings.cpp.
| void display_settings_screen | ( | N5110 & | lcd, |
| float | pot_read | ||
| ) |
Draws the settings screen.
- Parameters:
-
lcd N5110 object pot_read Potentiometer read value
Definition at line 83 of file Settings.cpp.
| ControlsParts get_control_method | ( | ) |
Return the control method that set-in setting menu.
- Returns:
- control_method_
Definition at line 66 of file Settings.cpp.
| SettingsParts get_displayed_settings_part | ( | ) |
Return the setting part that is displayed.
- Returns:
- get_displayed_settings_part_
Definition at line 79 of file Settings.cpp.
| MusicParts get_music_method | ( | ) |
Return the music method that set-in setting menu.
- Returns:
- music_method_
Definition at line 75 of file Settings.cpp.
| SoundParts get_sound_method | ( | ) |
Return the sound method that set-in setting menu.
- Returns:
- sound_method_
Definition at line 71 of file Settings.cpp.
| void init | ( | ) |
Initialises Settings.
Definition at line 59 of file Settings.cpp.
| void settings_scroll | ( | Direction | d_ ) |
Scrolls through the different settings parts.
- Parameters:
-
d_ Direction of joystick
Definition at line 123 of file Settings.cpp.
Generated on Fri Aug 5 2022 06:55:08 by
1.7.2