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

Method GetSwitchNumber

src/game/collision.cpp:767–776  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

765}
766
767int CCollision::GetSwitchNumber(int Index) const
768{
769 if(Index < 0 || !m_pSwitch)
770 return 0;
771
772 if(m_pSwitch[Index].m_Type > 0 && m_pSwitch[Index].m_Number > 0)
773 return m_pSwitch[Index].m_Number;
774
775 return 0;
776}
777
778int CCollision::GetSwitchDelay(int Index) const
779{

Callers 3

HandleTilesMethod · 0.80
GotoSwitchMethod · 0.80
HandleTilesMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected