#include #include #include "OrxonoxPrereqs.h" #include "core/config/Configurable.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(const std::string& level, int points, PlayerInfo* player); int getHighestScoreOfGame(const 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_; static Highscore* singletonPtr_s; }; //tolua_export } //tolua_export