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: N5110 PinDetect PowerControl mbed
Global.h
00001 #ifndef GLOBAL_H 00002 #define GLOBAL_H 00003 00004 #include "mbed.h" 00005 #include <string> 00006 00007 /// @file Global.h 00008 /// @brief Contains global variables and functions 00009 00010 /// A highscore element consists of initials and a score. 00011 struct Highscore 00012 { 00013 std::string initials; 00014 int score; 00015 }; 00016 00017 namespace Global 00018 { 00019 /// Score in last game 00020 extern int score; 00021 00022 /// List showing the three all time highest score achieved. Sorted from highest to lowest. 00023 extern Highscore highscores[3]; 00024 00025 /// Clears the highscore list 00026 void clearHighscoreList(); 00027 } 00028 00029 #endif
Generated on Tue Jul 12 2022 21:59:47 by
1.7.2