Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Jan 7, 2018, 9:16:52 PM (6 years ago)
Author:
landauf
Message:

[Highscore_HS16] removed playerName from Highscore because the player already has a name (see HumanPlayer.nick)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • code/trunk/src/orxonox/Highscore.h

    r11356 r11715  
    11#include <string>
     2#include <vector>
     3
     4#include "OrxonoxPrereqs.h"
    25#include "core/config/Configurable.h"
    3 #include "OrxonoxPrereqs.h"
    46#include "util/Singleton.h"
     7
    58// tolua_begin
    69namespace orxonox
     
    1417        Highscore();              // Constructor
    1518        void setConfigValues(); // Inherited function
    16         void storeHighscore(std::string level, int points);
    1719
    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
    1923        // tolua_begin
    2024        inline unsigned int getNumberOfHighscores()
    21                 { return this->highscores_.size(); }
    22             inline const std::string& getHighscore(unsigned int index)
    23                 { return this->highscores_[index]; }
     25            { return this->highscores_.size(); }
     26        inline const std::string& getHighscore(unsigned int index)
     27            { return this->highscores_[index]; }
    2428
    2529        static Highscore& getInstance()
    26                 { return Singleton<Highscore>::getInstance(); }
    27 
     30            { return Singleton<Highscore>::getInstance(); }
    2831        // tolua_end
    29 
    3032
    3133    private:
    3234        std::vector<std::string> highscores_;
    33         float version_;
    34         std::string playerName_;
    3535        static Highscore* singletonPtr_s;
    3636}; //tolua_export
Note: See TracChangeset for help on using the changeset viewer.