This class encapsulates all the algorithms required for the displaying strings and time dependent patterns on the lcd.

Dependents:   200943412_QuickClick

Embed: (wiki syntax)

« Back to documentation index

Display Class Reference

Display Class Reference

Display Class. More...

#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.

Author:
Dominic Kay
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:
classvariable w
Returns:
void

Definition at line 51 of file Display.cpp.