Ikenna Adrian Ozoemena 201157039

Dependencies:   mbed

Embed: (wiki syntax)

« Back to documentation index

Lore Class Reference

Lore Class Reference

Lore Class. More...

#include <Lore.h>

Public Member Functions

 Lore ()
 constructor
 ~Lore ()
 destructor
void display (N5110 &lcd, int rand)
 Displays a random tip about the game.
void seeker (N5110 &lcd)
 Prints a tip about the enemy ship, seeker, on screen.
void shooter (N5110 &lcd)
 Prints a tip about the enemy ship, shooter, on screen.
void imperion (N5110 &lcd)
 Prints a tip about a player ship, imperion, on screen.
void kestrel (N5110 &lcd)
 Prints a tip about a player ship, kestrel, on screen.
void orion (N5110 &lcd)
 Prints a tip about a player ship, orion, on screen.
void menu1 (N5110 &lcd)
 Prints a tip about the menu on screen.
void intro (N5110 &lcd)
 Displays game intro.
void help (N5110 &lcd)
 Displays game information.
void ships1 (N5110 &lcd)
 Holds the info displayed in intro about game.

Detailed Description

Lore Class.

Library for displaying tips about the game after every round

Author:
Ozoemena Adrian Ikenna
Date:
8th May 2019

Definition at line 13 of file Lore.h.


Constructor & Destructor Documentation

Lore (  )

constructor

Definition at line 57 of file Lore.cpp.

~Lore (  )

destructor

Definition at line 62 of file Lore.cpp.


Member Function Documentation

void display ( N5110 lcd,
int  rand 
)

Displays a random tip about the game.

Parameters:
&lcdaddress of the N5110 library used for the lcd display
randrandom number generated in main function and scaled for use in class

Definition at line 74 of file Lore.cpp.

void help ( N5110 lcd )

Displays game information.

Parameters:
&lcdaddress of the N5110 library used for the lcd display

Definition at line 66 of file Lore.cpp.

void imperion ( N5110 lcd )

Prints a tip about a player ship, imperion, on screen.

Parameters:
&lcdaddress of the N5110 library used for the lcd display

Definition at line 131 of file Lore.cpp.

void intro ( N5110 lcd )

Displays game intro.

Parameters:
&lcdaddress of the N5110 library used for the lcd display

Definition at line 171 of file Lore.cpp.

void kestrel ( N5110 lcd )

Prints a tip about a player ship, kestrel, on screen.

Parameters:
&lcdaddress of the N5110 library used for the lcd display

Definition at line 123 of file Lore.cpp.

void menu1 ( N5110 lcd )

Prints a tip about the menu on screen.

Parameters:
&lcdaddress of the N5110 library used for the lcd display

Definition at line 152 of file Lore.cpp.

void orion ( N5110 lcd )

Prints a tip about a player ship, orion, on screen.

Parameters:
&lcdaddress of the N5110 library used for the lcd display

Definition at line 140 of file Lore.cpp.

void seeker ( N5110 lcd )

Prints a tip about the enemy ship, seeker, on screen.

Parameters:
&lcdaddress of the N5110 library used for the lcd display

Definition at line 106 of file Lore.cpp.

void ships1 ( N5110 lcd )

Holds the info displayed in intro about game.

Parameters:
&lcdaddress of the N5110 library used for the lcd display

Definition at line 162 of file Lore.cpp.

void shooter ( N5110 lcd )

Prints a tip about the enemy ship, shooter, on screen.

Parameters:
&lcdaddress of the N5110 library used for the lcd display

Definition at line 113 of file Lore.cpp.