MCPcopy Create free account
hub / github.com/OGSR/OGSR-Engine / Exit

Method Exit

ogsr_engine/xrGame/Car.cpp:721–736  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

719}
720
721bool CCar::Exit(const Fvector& pos, const Fvector& dir)
722{
723 xr_map<u16, SDoor>::iterator i, e;
724
725 i = m_doors.begin();
726 e = m_doors.end();
727 for (; i != e; ++i)
728 {
729 if (i->second.CanExit(pos, dir))
730 {
731 i->second.GetExitPosition(m_exit_position);
732 return true;
733 }
734 }
735 return false;
736}
737
738void CCar::ParseDefinitions()
739{

Callers

nothing calls this directly

Calls 4

CanExitMethod · 0.80
GetExitPositionMethod · 0.80
beginMethod · 0.45
endMethod · 0.45

Tested by

no test coverage detected