Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/ddnet/ddnet
/ GetCharacter
Method
GetCharacter
src/game/server/player.cpp:606–611 ·
view source on GitHub ↗
Source
from the content-addressed store, hash-verified
604
}
605
606
CCharacter *CPlayer::GetCharacter()
607
{
608
if(m_pCharacter && m_pCharacter->IsAlive())
609
return m_pCharacter;
610
return nullptr;
611
}
612
613
const CCharacter *CPlayer::GetCharacter() const
614
{
Callers
15
Tick
Method · 0.80
GetDDRaceState
Method · 0.80
SetDDRaceState
Method · 0.80
GetStartTime
Method · 0.80
SetStartTime
Method · 0.80
SetLastTimeCp
Method · 0.80
GetCurrentTimeCp
Method · 0.80
OnFinish
Method · 0.80
SwapTeamCharacters
Method · 0.80
ConToggleSpec
Method · 0.80
ConTimeout
Method · 0.80
ConSwap
Method · 0.80
Calls
1
IsAlive
Method · 0.80
Tested by
1
TEST_F
Function · 0.64