Changeset 11715 for code/trunk/src/orxonox/Highscore.h
- Timestamp:
- Jan 7, 2018, 9:16:52 PM (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/trunk/src/orxonox/Highscore.h
r11356 r11715 1 1 #include <string> 2 #include <vector> 3 4 #include "OrxonoxPrereqs.h" 2 5 #include "core/config/Configurable.h" 3 #include "OrxonoxPrereqs.h"4 6 #include "util/Singleton.h" 7 5 8 // tolua_begin 6 9 namespace orxonox … … 14 17 Highscore(); // Constructor 15 18 void setConfigValues(); // Inherited function 16 void storeHighscore(std::string level, int points);17 19 18 int getHighestScoreOfGame(std::string game); 20 void storeHighscore(const std::string& level, int points, PlayerInfo* player); 21 int getHighestScoreOfGame(const std::string& game); 22 19 23 // tolua_begin 20 24 inline unsigned int getNumberOfHighscores() 21 22 23 25 { return this->highscores_.size(); } 26 inline const std::string& getHighscore(unsigned int index) 27 { return this->highscores_[index]; } 24 28 25 29 static Highscore& getInstance() 26 { return Singleton<Highscore>::getInstance(); } 27 30 { return Singleton<Highscore>::getInstance(); } 28 31 // tolua_end 29 30 32 31 33 private: 32 34 std::vector<std::string> highscores_; 33 float version_;34 std::string playerName_;35 35 static Highscore* singletonPtr_s; 36 36 }; //tolua_export
Note: See TracChangeset
for help on using the changeset viewer.