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:
- 17:d6a3b29cab31
- Child:
- 18:709ea375b0df
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/Global.h Mon May 11 03:52:18 2015 +0000
@@ -0,0 +1,23 @@
+#ifndef GLOBAL_H
+#define GLOBAL_H
+
+#include "mbed.h"
+#include <string>
+
+/// @file Global.h
+/// @brief Contains global variables and functions
+
+struct Highscore
+{
+ std::string initials;
+ int score;
+};
+
+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
+}
+
+#endif
\ No newline at end of file