#include #include "core/config/Configurable.h" #include "OrxonoxPrereqs.h" #include "util/Singleton.h" // tolua_begin namespace orxonox { class _OrxonoxExport Highscore // tolua_end : public Singleton, public Configurable { //tolua_export friend class Singleton; public: Highscore(); // Constructor void setConfigValues(); // Inherited function void storeHighscore(std::string level, int points); int getHighestScoreOfGame(std::string game); // tolua_begin inline unsigned int getNumberOfHighscores() { return this->highscores_.size(); } inline const std::string& getHighscore(unsigned int index) { return this->highscores_[index]; } static Highscore& getInstance() { return Singleton::getInstance(); } // tolua_end private: std::vector highscores_; float version_; std::string playerName_; static Highscore* singletonPtr_s; }; //tolua_export } //tolua_export