Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

source: code/branches/Highscore_HS16/src/orxonox/Highscore.h @ 11315

Last change on this file since 11315 was 11315, checked in by kappenh, 7 years ago

updated Highscore interface and Jump save routine TODO Menu!

File size: 1.1 KB
Line 
1#include <string>
2#include "core/config/Configurable.h"
3#include "OrxonoxPrereqs.h"
4#include "util/Singleton.h"
5// tolua_begin
6namespace orxonox
7{
8class _OrxonoxExport Highscore
9// tolua_end
10 : public Singleton<Highscore>, public Configurable
11{ //tolua_export
12    friend class Singleton<Highscore>;
13    public:
14        Highscore();              // Constructor
15        void setConfigValues(); // Inherited function
16        void storeHighscore(std::string player, std::string level, int points);
17
18        int getHighestScoreOfGame(std::string game);
19        // tolua_begin
20        inline unsigned int getNumberOfHighscores()
21                { return this->highscores_.size(); }
22            inline const std::string& getHighscore(unsigned int index)
23                { return this->highscores_[index]; }
24
25        static Highscore& getInstance()
26                { return Singleton<Highscore>::getInstance(); }
27
28        // tolua_end
29
30
31    private:
32        std::vector<std::string> highscores_;
33        float version_;
34        static Highscore* singletonPtr_s;
35}; //tolua_export
36
37
38} //tolua_export
Note: See TracBrowser for help on using the repository browser.