ELEC2645 (2019/20) / Mbed 2 deprecated ELEC2645_Project_el18jgb

Dependencies:   mbed

Embed: (wiki syntax)

« Back to documentation index

Highscore Class Reference

Highscore Class Reference

highscore Class More...

#include <Highscore.h>

Public Member Functions

 Highscore ()
 Constructor.
 ~Highscore ()
 Destructor.
int geths (SDFileSystem &sd)
 Gets the current highscore.
void seths (SDFileSystem &sd, int x)
 Set a new Highscore.

Detailed Description

highscore Class

reads and writes highscore

Author:
Joe Body, University of Leeds
Date:
May 2020

Definition at line 15 of file Highscore.h.


Constructor & Destructor Documentation

Highscore (  )

Constructor.

Definition at line 4 of file Highscore.cpp.

~Highscore (  )

Destructor.

Definition at line 9 of file Highscore.cpp.


Member Function Documentation

int geths ( SDFileSystem sd )

Gets the current highscore.

Parameters:
sdSD card object
Returns:
current_menu_part_

Definition at line 14 of file Highscore.cpp.

void seths ( SDFileSystem sd,
int  x 
)

Set a new Highscore.

Parameters:
sdSD card object
integerx

new high score

Definition at line 41 of file Highscore.cpp.