Hugo Hu / Mbed 2 deprecated BRAVEHEART

Dependencies:   mbed N5110 ShiftReg PinDetect

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