This class encapsulates all the algorithms required for the displaying strings and time dependent patterns on the lcd.
Dependents: 200943412_QuickClick
Display Class Reference
#include <Display.h>
Public Member Functions | |
| Display () | |
| Constructor. | |
| ~Display () | |
| Destructor. | |
| void | init () |
| Sets all variables to zero and resets wait time to max value. | |
| void | drawCircle (Controller &ctrl, N5110 &lcd) |
| Method for drawing the circle and decreasing the wait time. | |
| void | put_wait (float w) |
| Method for resetting the wait time if multi-player. | |
| float | get_wait () |
| Method for getting the wait time if multi-player. | |
| void | display_instruction (N5110 &lcd, int ran) |
| Displays a random instruction for the user to perform. | |
Detailed Description
Display Class.
This class encapsulates all the algorithms required for the displaying strings and time dependant patterns on the lcd.
- Date:
- April 2017
Definition at line 14 of file Display.h.
Constructor & Destructor Documentation
| Display | ( | ) |
Constructor.
Definition at line 6 of file Display.cpp.
| ~Display | ( | ) |
Destructor.
Definition at line 17 of file Display.cpp.
Member Function Documentation
| void display_instruction | ( | N5110 & | lcd, |
| int | ran | ||
| ) |
Displays a random instruction for the user to perform.
- Parameters:
-
ran (random number generated from operator)
- Returns:
- void
Definition at line 63 of file Display.cpp.
| void drawCircle | ( | Controller & | ctrl, |
| N5110 & | lcd | ||
| ) |
Method for drawing the circle and decreasing the wait time.
Definition at line 33 of file Display.cpp.
| float get_wait | ( | ) |
Method for getting the wait time if multi-player.
- Returns:
- wait time
Definition at line 57 of file Display.cpp.
| void init | ( | ) |
Sets all variables to zero and resets wait time to max value.
Definition at line 21 of file Display.cpp.
| void put_wait | ( | float | w ) |
Method for resetting the wait time if multi-player.
- Parameters:
-
class variable w
- Returns:
- void
Definition at line 51 of file Display.cpp.
Generated on Wed Jul 13 2022 05:07:37 by
1.7.2