ELEC2645 (2018/19) / Mbed 2 deprecated EL17MCD

Dependencies:   mbed

Scores/Scores.h

Committer:
el17mcd
Date:
2019-04-24
Revision:
16:a2c945279b79
Child:
17:cb39d9fa08dc

File content as of revision 16:a2c945279b79:

#ifndef SCORES_H
#define SCORES_H

#include "mbed.h"
#include "N5110.h"
#include "Gamepad.h"


class Scores
{
    
public:
    
    Scores();
    ~Scores();
    
    float score_calculator(int turns, int health); 
    void display_score(float current, N5110 &lcd);
    void display_top_scores(N5110 &lcd);
    void read_sd_scores();
    void write_sd_scores();
    
private:

    void _add_to_top_scores(float new_score);

    float _top_three[3];
  
};

#endif // SCORES_H