MCPcopy Create free account
hub / github.com/OpenRCT2/OpenRCT2 / MapGetPathElementAt

Function MapGetPathElementAt

src/openrct2/world/Map.cpp:425–436  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

423 }
424
425 PathElement* MapGetPathElementAt(const TileCoordsXYZ& loc)
426 {
427 for (auto* element : TileElementsView<PathElement>(loc.ToCoordsXY()))
428 {
429 if (element->isGhost())
430 continue;
431 if (element->baseHeight != loc.z)
432 continue;
433 return element;
434 }
435 return nullptr;
436 }
437
438 BannerElement* MapGetBannerElementAt(const CoordsXYZ& bannerPos, uint8_t position)
439 {

Callers 9

QueryMethod · 0.85
AutoPositionNewStaffMethod · 0.85
UpdateCrossingsMethod · 0.85
CalculateNextDestinationFunction · 0.85
doHandymanPathFindingMethod · 0.85
doMechanicPathFindingMethod · 0.85
doMiscPathFindingMethod · 0.85
PlaceMethod · 0.85

Calls 2

ToCoordsXYMethod · 0.80
isGhostMethod · 0.45

Tested by

no test coverage detected