MCPcopy Create free account
hub / github.com/ddnet/ddnet / ClientName

Method ClientName

src/engine/server/server.cpp:746–754  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

744}
745
746const char *CServer::ClientName(int ClientId) const
747{
748 if(ClientId < 0 || ClientId >= MAX_CLIENTS || m_aClients[ClientId].m_State == CServer::CClient::STATE_EMPTY)
749 return "(invalid)";
750 if(m_aClients[ClientId].m_State == CServer::CClient::STATE_INGAME || m_aClients[ClientId].m_State == CServer::CClient::STATE_REDIRECTED)
751 return m_aClients[ClientId].m_aName;
752 else
753 return "(connecting)";
754}
755
756const char *CServer::ClientClan(int ClientId) const
757{

Callers 15

ConKillPlayerMethod · 0.80
LogEventMethod · 0.80
OnCharacterStartMethod · 0.80
TickMethod · 0.80
OnTeamFinishMethod · 0.80
OnFinishMethod · 0.80
RequestTeamSwapMethod · 0.80
SwapTeamCharactersMethod · 0.80
CancelTeamSwapMethod · 0.80
OnCharacterDeathMethod · 0.80
ToggleSpecPauseFunction · 0.80
ConTeamTop5Method · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected