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

Method Enter

ogsr_engine/xrGame/Car.cpp:704–719  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

702}
703
704bool CCar::Enter(const Fvector& pos, const Fvector& dir, const Fvector& foot_pos)
705{
706 xr_map<u16, SDoor>::iterator i, e;
707
708 i = m_doors.begin();
709 e = m_doors.end();
710 Fvector enter_pos;
711 enter_pos.add(pos, foot_pos);
712 enter_pos.mul(0.5f);
713 for (; i != e; ++i)
714 {
715 if (i->second.CanEnter(pos, dir, enter_pos))
716 return true;
717 }
718 return false;
719}
720
721bool CCar::Exit(const Fvector& pos, const Fvector& dir)
722{

Callers 15

Perform_game_exportMethod · 0.45
Export_game_typeMethod · 0.45
client_Find_GetMethod · 0.45
client_DestroyMethod · 0.45
UpdateMethod · 0.45
OnDelayedMessageMethod · 0.45
OnMessageMethod · 0.45
ProceedDelayedPacketsMethod · 0.45
AddDelayedPacketMethod · 0.45
ConnectMethod · 0.45
~GameEventQueueMethod · 0.45
CreateMethod · 0.45

Calls 5

CanEnterMethod · 0.80
beginMethod · 0.45
endMethod · 0.45
addMethod · 0.45
mulMethod · 0.45

Tested by

no test coverage detected