![]() |
DDNet documentation
|
#include <playermapping.h>
Classes | |
| class | CSixupCfg |
| class | CPlayerMap |
Public Types | |
| enum class | ESeeOthersInd { NONE = -1 , PLAYER = 0 , BUTTON = 1 } |
Public Member Functions | |
| class CGameContext * | GameServer () |
| class CConfig * | Config () |
| class IServer * | Server () |
| void | Init (CGameContext *pGameServer) |
| void | Tick () |
| void | InitPlayerMap (int ClientId, CSixupCfg SixupCfg=CSixupCfg()) |
| void | UpdateTeamsState (int ClientId) |
| void | ForceInsertPlayer (int Insert, int ClientId) |
| int | SeeOthersId (int ClientId) const |
| bool | DoSeeOthers (int ClientId, int SelectedId, bool DoByVote=false) |
| void | ResetSeeOthers (int ClientId) |
| int | TotalOverhang (int ClientId) const |
| ESeeOthersInd | SeeOthersInd (int ClientId, int MapId) const |
| const char * | SeeOthersName (int ClientId) |
| bool | ReserveTeamSlots (int DDTeam, int ClientId) const |
Private Member Functions | |
| void | UpdatePlayerMap (int ClientId) |
Private Attributes | |
| class CGameContext * | m_pGameServer |
| class CConfig * | m_pConfig |
| class IServer * | m_pServer |
| int | m_aTeamSizes [NUM_DDRACE_TEAMS] |
| bool | m_ReserveAnyTeamSlots |
| char | m_aSeeOthersName [MAX_NAME_LENGTH] |
| class CPlayerMapping::CPlayerMap | m_aMap [MAX_CLIENTS] |
Static Private Attributes | |
| static constexpr int | ms_MaxNumSeeOthers = 34 |
| static constexpr int | ms_MaxNumSeeOthersVanilla = 13 |
| static constexpr int | ms_MaxTeamSizePlayerMap = 10 |
| static constexpr int | ms_MaxTotalTeamSizePlayerMap = 30 |
|
strong |
|
inline |
| bool CPlayerMapping::DoSeeOthers | ( | int | ClientId, |
| int | SelectedId, | ||
| bool | DoByVote = false ) |
|
inline |
|
inline |
| void CPlayerMapping::Init | ( | CGameContext * | pGameServer | ) |
| bool CPlayerMapping::ReserveTeamSlots | ( | int | DDTeam, |
| int | ClientId ) const |
| void CPlayerMapping::ResetSeeOthers | ( | int | ClientId | ) |
| int CPlayerMapping::SeeOthersId | ( | int | ClientId | ) | const |
| CPlayerMapping::ESeeOthersInd CPlayerMapping::SeeOthersInd | ( | int | ClientId, |
| int | MapId ) const |
| const char * CPlayerMapping::SeeOthersName | ( | int | ClientId | ) |
|
inline |
| void CPlayerMapping::Tick | ( | ) |
| int CPlayerMapping::TotalOverhang | ( | int | ClientId | ) | const |
|
private |
|
inline |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
staticconstexprprivate |
|
staticconstexprprivate |
|
staticconstexprprivate |
|
staticconstexprprivate |