Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependencies: mbed
Scores/Scores.h
- Committer:
- el17mcd
- Date:
- 2019-04-30
- Revision:
- 18:165e3d49daa8
- Parent:
- 17:cb39d9fa08dc
- Child:
- 21:44e87d88afe2
File content as of revision 18:165e3d49daa8:
#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);
private:
void _add_to_top_scores(float new_score);
float _top_three[3];
};
#endif // SCORES_H