Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Dec 1, 2016, 3:08:54 PM (7 years ago)
Author:
kappenh
Message:

updated Highscore interface and Jump save routine TODO Menu!

File:
1 edited

Legend:

Unmodified
Added
Removed
  • code/branches/Highscore_HS16/src/orxonox/Highscore.h

    r11313 r11315  
    1515        void setConfigValues(); // Inherited function
    1616        void storeHighscore(std::string player, std::string level, int points);
     17
     18        int getHighestScoreOfGame(std::string game);
    1719        // tolua_begin
    18                 inline const std::string& getName() {
    19                         return this->name_;
    20                 }
    21         inline void test(){
    22             this->storeHighscore("test","t",1);
    23         }
    2420        inline unsigned int getNumberOfHighscores()
    25                 { return this->tests_.size(); }
     21                { return this->highscores_.size(); }
    2622            inline const std::string& getHighscore(unsigned int index)
    27                 { return this->tests_[index]; }
     23                { return this->highscores_[index]; }
    2824
    2925        static Highscore& getInstance()
     
    3430
    3531    private:
    36         std::vector<std::string> tests_;
    37         std::string name_;
     32        std::vector<std::string> highscores_;
    3833        float version_;
    3934        static Highscore* singletonPtr_s;
Note: See TracChangeset for help on using the changeset viewer.