Andreas Garmannslund / Mbed 2 deprecated SimplePlatformGame

Dependencies:   N5110 PinDetect PowerControl mbed

Embed: (wiki syntax)

« Back to documentation index

Show/hide line numbers Global.h Source File

Global.h

Go to the documentation of this file.
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