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

Function GetProbeRoomNumber

TombEngine/Game/collision/Point.cpp:502–509  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

500 }
501
502 static int GetProbeRoomNumber(const Vector3i& pos, const RoomVector& location, const Vector3i& probePos)
503 {
504 // Conduct L-shaped room traversal.
505 short probeRoomNumber = GetRoomVector(location, Vector3i(pos.x, probePos.y, pos.z)).RoomNumber;
506 GetFloor(probePos.x, probePos.y, probePos.z, &probeRoomNumber);
507
508 return probeRoomNumber;
509 }
510
511 static RoomVector GetLocation(const Vector3i& pos, int roomNumber)
512 {

Callers 1

GetPointCollisionFunction · 0.85

Calls 3

GetRoomVectorFunction · 0.85
GetFloorFunction · 0.85
Vector3iClass · 0.50

Tested by

no test coverage detected