![]() |
DDNet documentation
|
#include <player.h>
Classes | |
| class | CCameraInfo |
| struct | [struct].m_Latency |
Public Types | |
| enum | { PAUSE_NONE = 0 , PAUSE_PAUSED , PAUSE_SPEC } |
| enum | { TIMERTYPE_DEFAULT = -1 , TIMERTYPE_GAMETIMER , TIMERTYPE_BROADCAST , TIMERTYPE_GAMETIMER_AND_BROADCAST , TIMERTYPE_SIXUP , TIMERTYPE_NONE } |
Public Member Functions | |
| CPlayer (CGameContext *pGameServer, uint32_t UniqueClientId, int ClientId, int Team) | |
| ~CPlayer () | |
| void | Reset () |
| void | TryRespawn () |
| void | Respawn (bool WeakHook=false) |
| CCharacter * | ForceSpawn (vec2 Pos) |
| void | SetTeam (int Team, bool DoChatMsg=true) |
| int | GetTeam () const |
| int | GetCid () const |
| uint32_t | GetUniqueCid () const |
| int | GetClientVersion () const |
| bool | SetTimerType (int TimerType) |
| void | Tick () |
| void | PostTick () |
| void | PostPostTick () |
| void | Snap (int SnappingClient) |
| void | FakeSnap () |
| void | SendConnect (int FakeId, int ClientId) |
| void | SendDisconnect (int FakeId) |
| void | OnDirectInput (const CNetObj_PlayerInput *pNewInput) |
| void | OnPredictedInput (const CNetObj_PlayerInput *pNewInput) |
| void | OnPredictedEarlyInput (const CNetObj_PlayerInput *pNewInput) |
| void | OnDisconnect () |
| void | KillCharacter (int Weapon=WEAPON_GAME, bool SendKillMsg=true) |
| CCharacter * | GetCharacter () |
| const CCharacter * | GetCharacter () const |
| void | SpectatePlayerName (const char *pName) |
| int | SpectatorId () const |
| void | SetSpectatorId (int Id) |
| const CTeeInfo & | TeeInfos () const |
| void | SetTeeInfos (const CTeeInfo &TeeInfos) |
| void | SetTeeInfos (const char *pSkinName, bool UseCustomColor, int ColorBody, int ColorFeet) |
| void | InvalidateClientInfo () |
| void | ProcessPause () |
| int | Pause (int State, bool Force) |
| int | ForcePause (int Time) |
| int | IsPaused () const |
| bool | CanSpec () const |
| bool | IsPlaying () const |
| void | UpdateNetworkClipRadius () |
| void | UpdatePlaytime () |
| void | AfkTimer () |
| void | SetAfk (bool Afk) |
| void | SetInitialAfk (bool Afk) |
| bool | IsAfk () const |
| int | GetDefaultEmote () const |
| void | OverrideDefaultEmote (int Emote, int Tick) |
| bool | CanOverrideDefaultEmote () const |
| void | ProcessScoreResult (CScorePlayerResult &Result) |
Private Member Functions | |
| CGameContext * | GameServer () const |
| IServer * | Server () const |
Private Attributes | |
| CTeeInfo | m_TeeInfos |
| CNetObj_ClientInfo | m_ClientInfo = {} |
| bool | m_ClientInfoValid = false |
| const uint32_t | m_UniqueClientId |
| CCharacter * | m_pCharacter |
| int | m_NumInputs |
| CGameContext * | m_pGameServer |
| bool | m_Spawning |
| bool | m_WeakHookSpawn |
| int | m_ClientId |
| int | m_Team |
| int | m_SpectatorId |
| int | m_Paused |
| int64_t | m_ForcePauseTime |
| int64_t | m_LastPause |
| bool | m_Afk |
| int | m_DefEmote |
| int | m_OverrideEmote |
| int | m_OverrideEmoteReset |
| bool | m_Halloween |
| anonymous enum |
| CPlayer::CPlayer | ( | CGameContext * | pGameServer, |
| uint32_t | UniqueClientId, | ||
| int | ClientId, | ||
| int | Team ) |
| CPlayer::~CPlayer | ( | ) |
| void CPlayer::AfkTimer | ( | ) |
| bool CPlayer::CanOverrideDefaultEmote | ( | ) | const |
| bool CPlayer::CanSpec | ( | ) | const |
| void CPlayer::FakeSnap | ( | ) |
| int CPlayer::ForcePause | ( | int | Time | ) |
| CCharacter * CPlayer::ForceSpawn | ( | vec2 | Pos | ) |
|
inlineprivate |
| CCharacter * CPlayer::GetCharacter | ( | ) |
| const CCharacter * CPlayer::GetCharacter | ( | ) | const |
|
inline |
| int CPlayer::GetClientVersion | ( | ) | const |
| int CPlayer::GetDefaultEmote | ( | ) | const |
|
inline |
|
inline |
|
inline |
|
inline |
| int CPlayer::IsPaused | ( | ) | const |
| bool CPlayer::IsPlaying | ( | ) | const |
| void CPlayer::KillCharacter | ( | int | Weapon = WEAPON_GAME, |
| bool | SendKillMsg = true ) |
| void CPlayer::OnDirectInput | ( | const CNetObj_PlayerInput * | pNewInput | ) |
| void CPlayer::OnDisconnect | ( | ) |
| void CPlayer::OnPredictedEarlyInput | ( | const CNetObj_PlayerInput * | pNewInput | ) |
| void CPlayer::OnPredictedInput | ( | const CNetObj_PlayerInput * | pNewInput | ) |
| void CPlayer::OverrideDefaultEmote | ( | int | Emote, |
| int | Tick ) |
| int CPlayer::Pause | ( | int | State, |
| bool | Force ) |
| void CPlayer::PostPostTick | ( | ) |
| void CPlayer::PostTick | ( | ) |
| void CPlayer::ProcessPause | ( | ) |
| void CPlayer::ProcessScoreResult | ( | CScorePlayerResult & | Result | ) |
| void CPlayer::Reset | ( | ) |
| void CPlayer::Respawn | ( | bool | WeakHook = false | ) |
| void CPlayer::SendConnect | ( | int | FakeId, |
| int | ClientId ) |
| void CPlayer::SendDisconnect | ( | int | FakeId | ) |
|
private |
| void CPlayer::SetAfk | ( | bool | Afk | ) |
| void CPlayer::SetInitialAfk | ( | bool | Afk | ) |
| void CPlayer::SetSpectatorId | ( | int | Id | ) |
| void CPlayer::SetTeam | ( | int | Team, |
| bool | DoChatMsg = true ) |
| void CPlayer::SetTeeInfos | ( | const char * | pSkinName, |
| bool | UseCustomColor, | ||
| int | ColorBody, | ||
| int | ColorFeet ) |
| void CPlayer::SetTeeInfos | ( | const CTeeInfo & | TeeInfos | ) |
| bool CPlayer::SetTimerType | ( | int | TimerType | ) |
| void CPlayer::Snap | ( | int | SnappingClient | ) |
| void CPlayer::SpectatePlayerName | ( | const char * | pName | ) |
|
inline |
|
inline |
| void CPlayer::Tick | ( | ) |
| void CPlayer::TryRespawn | ( | ) |
| void CPlayer::UpdateNetworkClipRadius | ( | ) |
| void CPlayer::UpdatePlaytime | ( | ) |
| int CPlayer::m_aCurLatency[MAX_CLIENTS] |
|
private |
| int CPlayer::m_aLastCommands[4] |
| int CPlayer::m_aStrongWeakId[LEGACY_MAX_CLIENTS] |
| char CPlayer::m_aTimeoutCode[64] |
| bool CPlayer::m_BirthdayAnnounced |
| class CPlayer::CCameraInfo CPlayer::m_CameraInfo |
| int CPlayer::m_ChatScore |
|
private |
|
private |
|
private |
| int CPlayer::m_DDNetVersionKickTick |
|
private |
| int CPlayer::m_DieTick |
| bool CPlayer::m_DND |
| int64_t CPlayer::m_EligibleForFinishCheck |
| bool CPlayer::m_EnableSpectatorCount |
| bool CPlayer::m_EyeEmoteEnabled |
| bool CPlayer::m_FirstPacket |
| int64_t CPlayer::m_FirstVoteTick |
|
private |
|
private |
| bool CPlayer::m_IsReady |
| int CPlayer::m_JoinTick |
| int CPlayer::m_LastActionTick |
| int64_t CPlayer::m_LastBroadcast |
| bool CPlayer::m_LastBroadcastImportance |
| int CPlayer::m_LastChangeInfo |
| int CPlayer::m_LastChat |
| int CPlayer::m_LastCommandPos |
| std::optional<int64_t> CPlayer::m_LastDDRaceTeamChange |
| std::optional<CSaveTee> CPlayer::m_LastDeath |
| int CPlayer::m_LastEmote |
| int CPlayer::m_LastEmoteGlobal |
| int64_t CPlayer::m_LastEyeEmote |
| int CPlayer::m_LastInvited |
| int64_t CPlayer::m_LastKickVote |
| int CPlayer::m_LastKill |
|
private |
| int64_t CPlayer::m_LastPlaytime |
| int CPlayer::m_LastSetSpectatorMode |
| int CPlayer::m_LastSetTeam |
| int64_t CPlayer::m_LastSqlQuery |
| bool CPlayer::m_LastTargetInit |
| CSaveTee CPlayer::m_LastTeleTee |
| int CPlayer::m_LastVoteCall |
| int CPlayer::m_LastVoteTry |
| int CPlayer::m_LastWhisperTo |
| struct CPlayer::[struct].m_Latency CPlayer::m_Latency |
| bool CPlayer::m_Moderating |
| vec2 CPlayer::m_NetworkClipRadius |
| bool CPlayer::m_NinjaJetpack |
| bool CPlayer::m_NotEligibleForFinish |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
| const CVoteOptionServer* CPlayer::m_pLastSentVoteOption |
| CNetObj_PlayerInput* CPlayer::m_pLastTarget |
| int CPlayer::m_PlayerFlags |
| int CPlayer::m_PreviousDieTick |
| int CPlayer::m_RescueMode |
| std::shared_ptr<CScorePlayerResult> CPlayer::m_ScoreFinishResult |
| std::shared_ptr<CScorePlayerResult> CPlayer::m_ScoreQueryResult |
| int CPlayer::m_SendVoteIndex |
| int CPlayer::m_SentSnaps = 0 |
| bool CPlayer::m_ShowAll |
| vec2 CPlayer::m_ShowDistance |
| int CPlayer::m_ShowOthers |
|
private |
|
private |
| bool CPlayer::m_SpecTeam |
| int CPlayer::m_SwapTargetsClientId |
|
private |
| int CPlayer::m_TeamChangeTick |
|
private |
| int CPlayer::m_TimerType |
| int CPlayer::m_TuneZone |
| int CPlayer::m_TuneZoneOld |
|
private |
| vec2 CPlayer::m_ViewPos |
| int CPlayer::m_Vote |
| bool CPlayer::m_VotedForPractice |
| int CPlayer::m_VotePos |
|
private |
| bool CPlayer::m_Whispers |