Emergency 20 Dokumentation  4.2.0
em5::HighscoreManager Class Reference

EMERGENCY 5 highscore manager class. More...

#include <HighscoreManager.h>

Inheritance diagram for em5::HighscoreManager:
qsf::Manager

Public Types

enum  Map {
  MAP_UNKNOWN = -1, MAP_MUNICH = 0, MAP_HAMBURG = 1, MAP_BERLIN = 2,
  MAP_COLOGNE = 3
}
 

Public Member Functions

 HighscoreManager ()
 Default constructor. More...
 
virtual ~HighscoreManager ()
 Destructor. More...
 
uint32 submitLocalHighscore (const std::string &rankingId, const std::string &name, uint32 score)
 
const boost::container::flat_set< HighscoreEntry > & getLocalHighscores (const std::string &rankingId)
 
uint32 submitOnlineHighscore (const std::string &rankingId, const std::string &name, uint32 score, const std::string &group="")
 
bool getOnlineHighscorePage (const std::string &rankingId, uint32 pageIndex, HighscoreOnlinePage &output)
 
bool getOnlineHighscoreSingleUserEntry (const std::string &rankingId, const std::string &name, HighscoreOnlineEntry &output)
 

Static Public Member Functions

static std::string getMainEventRankingId (Map map, uint32 mainEventNumber)
 
static std::string getFreeplayEndlessRankingId (Map map)
 
static std::string getFreeplayChallengeRankingId (Map map)
 
static std::string getMultiplayerRankingId (Map map, em5::multiplayer::GameMode gameMode, uint32 numberOfPlayers, uint32 duration)
 

Additional Inherited Members

- Protected Member Functions inherited from qsf::Manager
 Manager ()
 Default constructor. More...
 
virtual ~Manager ()
 Destructor. More...
 

Detailed Description

EMERGENCY 5 highscore manager class.

Member Enumeration Documentation

Enumerator
MAP_UNKNOWN 
MAP_MUNICH 
MAP_HAMBURG 
MAP_BERLIN 
MAP_COLOGNE 

Constructor & Destructor Documentation

em5::HighscoreManager::HighscoreManager ( )

Default constructor.

virtual em5::HighscoreManager::~HighscoreManager ( )
virtual

Destructor.

Member Function Documentation

static std::string em5::HighscoreManager::getFreeplayChallengeRankingId ( Map  map)
static
static std::string em5::HighscoreManager::getFreeplayEndlessRankingId ( Map  map)
static
const boost::container::flat_set<HighscoreEntry>& em5::HighscoreManager::getLocalHighscores ( const std::string &  rankingId)
static std::string em5::HighscoreManager::getMainEventRankingId ( Map  map,
uint32  mainEventNumber 
)
static
static std::string em5::HighscoreManager::getMultiplayerRankingId ( Map  map,
em5::multiplayer::GameMode  gameMode,
uint32  numberOfPlayers,
uint32  duration 
)
static
bool em5::HighscoreManager::getOnlineHighscorePage ( const std::string &  rankingId,
uint32  pageIndex,
HighscoreOnlinePage output 
)
bool em5::HighscoreManager::getOnlineHighscoreSingleUserEntry ( const std::string &  rankingId,
const std::string &  name,
HighscoreOnlineEntry output 
)
uint32 em5::HighscoreManager::submitLocalHighscore ( const std::string &  rankingId,
const std::string &  name,
uint32  score 
)
uint32 em5::HighscoreManager::submitOnlineHighscore ( const std::string &  rankingId,
const std::string &  name,
uint32  score,
const std::string &  group = "" 
)

The documentation for this class was generated from the following file: