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 N5110 ShiftReg PinDetect
Diff: Global.h
- Revision:
- 18:709ea375b0df
- Parent:
- 17:d6a3b29cab31
- Child:
- 19:89c3eeb3761b
--- a/Global.h Mon May 11 03:52:18 2015 +0000
+++ b/Global.h Mon May 11 04:40:23 2015 +0000
@@ -7,6 +7,7 @@
/// @file Global.h
/// @brief Contains global variables and functions
+/// A highscore element consists of initials and a score.
struct Highscore
{
std::string initials;
@@ -15,9 +16,14 @@
namespace Global
{
- extern int score; /// Score in last game
- extern Highscore highscores[3]; /// List showing the three all time highest score achieved. Sorted from highest to lowest.
- void clearHighscoreList(); /// Clears the highscore list
+ /// Score in last game
+ extern int score;
+
+ /// List showing the three all time highest score achieved. Sorted from highest to lowest.
+ extern Highscore highscores[3];
+
+ /// Clears the highscore list
+ void clearHighscoreList();
}
#endif
\ No newline at end of file