ELEC2645 (2018/19) / Mbed 2 deprecated EL17MCD

Dependencies:   mbed

Embed: (wiki syntax)

« Back to documentation index

Menus Class Reference

Menus Class Reference

Menus Class. More...

#include <Menus.h>

Public Member Functions

 Menus ()
 Constructor.
 ~Menus ()
 Destructor.
bool get_mute ()
 Gets the player's preference for the mute setting.
int get_health ()
 Gets the player's preference for the tank's initial health.
void start_up_screen (Graphics &graphics, N5110 &lcd, Gamepad &pad)
 Shows the start up visuals and awaits player's input.
void main_menu (Graphics &graphics, N5110 &lcd, Gamepad &pad, Scores &scores)
 Navigates the menu screens and awaits player's input.

Detailed Description

Menus Class.

Generates and navigates the outside-of-game menus.

Author:
Maxim C. Delacoe
Date:
April 2019

Definition at line 16 of file Menus.h.


Constructor & Destructor Documentation

Menus (  )

Constructor.

Sets the settings to default.

Definition at line 8 of file Menus.cpp.

~Menus (  )

Destructor.

Non user specified.

Definition at line 15 of file Menus.cpp.


Member Function Documentation

int get_health (  )

Gets the player's preference for the tank's initial health.

Returns:
tank's initial health

Definition at line 174 of file Menus.cpp.

bool get_mute (  )

Gets the player's preference for the mute setting.

Returns:
mute on or off

Definition at line 169 of file Menus.cpp.

void main_menu ( Graphics graphics,
N5110 lcd,
Gamepad pad,
Scores scores 
)

Navigates the menu screens and awaits player's input.

Parameters:
&graphics*

The graphics object from Graphics class.

Parameters:
&lcd*

The lcd object from N5110 class.

Parameters:
&pad*

The pad object from Gamepad class.

Parameters:
&scores*

The scores object from Scores class.

Definition at line 34 of file Menus.cpp.

void start_up_screen ( Graphics graphics,
N5110 lcd,
Gamepad pad 
)

Shows the start up visuals and awaits player's input.

Parameters:
&graphics*

The graphics object from Graphics class.

Parameters:
&lcd*

The lcd object from N5110 class.

Parameters:
&pad*

The pad object from Gamepad class.

Definition at line 20 of file Menus.cpp.