MCPcopy Create free account
hub / github.com/TombEngine/TombEngine / GetQuadrant

Function GetQuadrant

TombEngine/Game/collision/collide_room.cpp:739–742  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

737}
738
739int GetQuadrant(short angle)
740{
741 return (unsigned short(angle + ANGLE(45.0f)) / ANGLE(90.0f));
742}
743
744bool TestNeighborRooms(int roomNumber0, int roomNumber1)
745{

Callers 15

InitializeDoorFunction · 0.85
CollidePushableBlockFunction · 0.85
HandleMoveStateFunction · 0.85
HandleEdgeSlipStateFunction · 0.85
IsValidForPlayerFunction · 0.85
PushableIdleConditionsFunction · 0.85
CollideStatuePlinthFunction · 0.85
TestLaraHangFunction · 0.85
TestLaraHangCornerFunction · 0.85

Calls 1

ANGLEFunction · 0.85

Tested by 5

TestLaraHangFunction · 0.68
TestLaraHangCornerFunction · 0.68