Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependencies: mbed
Menus/Menus.h@17:cb39d9fa08dc, 2019-04-27 (annotated)
- Committer:
- el17mcd
- Date:
- Sat Apr 27 17:43:46 2019 +0000
- Revision:
- 17:cb39d9fa08dc
- Parent:
- 16:a2c945279b79
- Child:
- 21:44e87d88afe2
! Stylistic changes made to code so it conforms to google c++ guide. Beginning of inline commenting of source code.
Who changed what in which revision?
| User | Revision | Line number | New contents of line |
|---|---|---|---|
| el17mcd | 16:a2c945279b79 | 1 | #ifndef MENUS_H |
| el17mcd | 16:a2c945279b79 | 2 | #define MENUS_H |
| el17mcd | 15:fa5282fcd134 | 3 | |
| el17mcd | 15:fa5282fcd134 | 4 | #include "mbed.h" |
| el17mcd | 15:fa5282fcd134 | 5 | #include "N5110.h" |
| el17mcd | 15:fa5282fcd134 | 6 | #include "Gamepad.h" |
| el17mcd | 15:fa5282fcd134 | 7 | #include "Graphics.h" |
| el17mcd | 16:a2c945279b79 | 8 | #include "Scores.h" |
| el17mcd | 15:fa5282fcd134 | 9 | |
| el17mcd | 15:fa5282fcd134 | 10 | class Menus |
| el17mcd | 15:fa5282fcd134 | 11 | { |
| el17mcd | 16:a2c945279b79 | 12 | |
| el17mcd | 15:fa5282fcd134 | 13 | public: |
| el17mcd | 15:fa5282fcd134 | 14 | |
| el17mcd | 17:cb39d9fa08dc | 15 | Menus(); |
| el17mcd | 17:cb39d9fa08dc | 16 | ~Menus(); |
| el17mcd | 17:cb39d9fa08dc | 17 | |
| el17mcd | 17:cb39d9fa08dc | 18 | void start_up_screen(Graphics &graphics, N5110 &lcd, Gamepad &pad); |
| el17mcd | 17:cb39d9fa08dc | 19 | void main_menu(Graphics &graphics, N5110 &lcd, Gamepad &pad, Scores &scores); |
| el17mcd | 17:cb39d9fa08dc | 20 | bool get_mute(); |
| el17mcd | 17:cb39d9fa08dc | 21 | int get_health(); |
| el17mcd | 15:fa5282fcd134 | 22 | |
| el17mcd | 15:fa5282fcd134 | 23 | private: |
| el17mcd | 15:fa5282fcd134 | 24 | |
| el17mcd | 17:cb39d9fa08dc | 25 | void _start_up_visuals(Graphics &graphics, N5110 &lcd, Gamepad &pad); |
| el17mcd | 17:cb39d9fa08dc | 26 | void _main_menu_controls(N5110 &lcd, Gamepad &pad, Scores &scores); |
| el17mcd | 17:cb39d9fa08dc | 27 | void _read_inputs(Gamepad &pad); |
| el17mcd | 17:cb39d9fa08dc | 28 | void _controls_screen(N5110 &lcd, Gamepad &pad); |
| el17mcd | 17:cb39d9fa08dc | 29 | void _settings_screen(N5110 &lcd, Gamepad &pad); |
| el17mcd | 17:cb39d9fa08dc | 30 | void _mute_brightness_lives(N5110 &lcd, Gamepad &pad); |
| el17mcd | 17:cb39d9fa08dc | 31 | void _scores_screen(N5110 &lcd, Gamepad &pad, Scores &scores); |
| el17mcd | 15:fa5282fcd134 | 32 | |
| el17mcd | 17:cb39d9fa08dc | 33 | int _counter; |
| el17mcd | 17:cb39d9fa08dc | 34 | int _health; |
| el17mcd | 17:cb39d9fa08dc | 35 | bool _mute; |
| el17mcd | 17:cb39d9fa08dc | 36 | float _brightness; |
| el17mcd | 17:cb39d9fa08dc | 37 | float _contrast; |
| el17mcd | 15:fa5282fcd134 | 38 | }; |
| el17mcd | 15:fa5282fcd134 | 39 | |
| el17mcd | 16:a2c945279b79 | 40 | #endif // MENUS_H |