![]() |
DDraceNetwork Documentation
|
#include <score.h>
Public Member Functions | |
| CScore (CGameContext *pGameServer, CDbConnectionPool *pPool) | |
| CPlayerData * | PlayerData (int Id) |
| void | LoadBestTime () |
| void | MapInfo (int ClientId, const char *pMapName) |
| void | MapVote (int ClientId, const char *pMapName) |
| void | LoadPlayerData (int ClientId, const char *pName="") |
| void | LoadPlayerTimeCp (int ClientId, const char *pName="") |
| void | SaveScore (int ClientId, int TimeTicks, const char *pTimestamp, const float aTimeCp[NUM_CHECKPOINTS], bool NotEligible) |
| void | SaveTeamScore (int Team, int *pClientIds, unsigned int Size, int TimeTicks, const char *pTimestamp) |
| void | ShowTop (int ClientId, int Offset=1) |
| void | ShowRank (int ClientId, const char *pName) |
| void | ShowTeamTop5 (int ClientId, int Offset=1) |
| void | ShowPlayerTeamTop5 (int ClientId, const char *pName, int Offset=1) |
| void | ShowTeamRank (int ClientId, const char *pName) |
| void | ShowTopPoints (int ClientId, int Offset=1) |
| void | ShowPoints (int ClientId, const char *pName) |
| void | ShowTimes (int ClientId, const char *pName, int Offset=1) |
| void | ShowTimes (int ClientId, int Offset=1) |
| void | RandomMap (int ClientId, int MinStars, int MaxStars) |
| void | RandomUnfinishedMap (int ClientId, int MinStars, int MaxStars) |
| void | SaveTeam (int ClientId, const char *pCode, const char *pServer) |
| void | LoadTeam (const char *pCode, int ClientId) |
| void | GetSaves (int ClientId) |
Private Member Functions | |
| CGameContext * | GameServer () const |
| IServer * | Server () const |
| void | GeneratePassphrase (char *pBuf, int BufSize) |
| std::shared_ptr< CScorePlayerResult > | NewSqlPlayerResult (int ClientId) |
| void | ExecPlayerThread (bool(*pFuncPtr)(IDbConnection *, const ISqlData *, char *pError, int ErrorSize), const char *pThreadName, int ClientId, const char *pName, int Offset) |
| bool | RateLimitPlayer (int ClientId) |
Private Attributes | |
| CPlayerData | m_aPlayerData [MAX_CLIENTS] |
| CDbConnectionPool * | m_pPool |
| CGameContext * | m_pGameServer |
| IServer * | m_pServer |
| std::vector< std::string > | m_vWordlist |
| CPrng | m_Prng |
| CScore::CScore | ( | CGameContext * | pGameServer, |
| CDbConnectionPool * | pPool ) |
|
private |
|
inlineprivate |
|
private |
| void CScore::GetSaves | ( | int | ClientId | ) |
| void CScore::LoadBestTime | ( | ) |
| void CScore::LoadPlayerData | ( | int | ClientId, |
| const char * | pName = "" ) |
| void CScore::LoadPlayerTimeCp | ( | int | ClientId, |
| const char * | pName = "" ) |
| void CScore::LoadTeam | ( | const char * | pCode, |
| int | ClientId ) |
| void CScore::MapInfo | ( | int | ClientId, |
| const char * | pMapName ) |
| void CScore::MapVote | ( | int | ClientId, |
| const char * | pMapName ) |
|
private |
|
inline |
| void CScore::RandomMap | ( | int | ClientId, |
| int | MinStars, | ||
| int | MaxStars ) |
| void CScore::RandomUnfinishedMap | ( | int | ClientId, |
| int | MinStars, | ||
| int | MaxStars ) |
|
private |
| void CScore::SaveScore | ( | int | ClientId, |
| int | TimeTicks, | ||
| const char * | pTimestamp, | ||
| const float | aTimeCp[NUM_CHECKPOINTS], | ||
| bool | NotEligible ) |
| void CScore::SaveTeam | ( | int | ClientId, |
| const char * | pCode, | ||
| const char * | pServer ) |
| void CScore::SaveTeamScore | ( | int | Team, |
| int * | pClientIds, | ||
| unsigned int | Size, | ||
| int | TimeTicks, | ||
| const char * | pTimestamp ) |
|
inlineprivate |
| void CScore::ShowPlayerTeamTop5 | ( | int | ClientId, |
| const char * | pName, | ||
| int | Offset = 1 ) |
| void CScore::ShowPoints | ( | int | ClientId, |
| const char * | pName ) |
| void CScore::ShowRank | ( | int | ClientId, |
| const char * | pName ) |
| void CScore::ShowTeamRank | ( | int | ClientId, |
| const char * | pName ) |
| void CScore::ShowTeamTop5 | ( | int | ClientId, |
| int | Offset = 1 ) |
| void CScore::ShowTimes | ( | int | ClientId, |
| const char * | pName, | ||
| int | Offset = 1 ) |
| void CScore::ShowTimes | ( | int | ClientId, |
| int | Offset = 1 ) |
| void CScore::ShowTop | ( | int | ClientId, |
| int | Offset = 1 ) |
| void CScore::ShowTopPoints | ( | int | ClientId, |
| int | Offset = 1 ) |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |