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

Method GetSwitchType

src/game/collision.cpp:756–765  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

754}
755
756int CCollision::GetSwitchType(int Index) const
757{
758 if(Index < 0 || !m_pSwitch)
759 return 0;
760
761 if(m_pSwitch[Index].m_Type > 0)
762 return m_pSwitch[Index].m_Type;
763
764 return 0;
765}
766
767int CCollision::GetSwitchNumber(int Index) const
768{

Callers 6

HandleTilesMethod · 0.80
DDRaceTickMethod · 0.80
TickMethod · 0.80
DoBounceMethod · 0.80
HandleTilesMethod · 0.80
DDRaceTickMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected