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

Function MapGetFirstElementAt

src/openrct2/world/Map.cpp:345–353  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

343 }
344
345 TileElement* MapGetFirstElementAt(const TileCoordsXY& tilePos)
346 {
347 if (!IsTileLocationValid(tilePos))
348 {
349 LOG_VERBOSE("Trying to access element outside of range");
350 return nullptr;
351 }
352 return _tileIndex.GetFirstElementAt(tilePos);
353 }
354
355 TileElement* MapGetFirstElementAt(const CoordsXY& elementPos)
356 {

Callers 15

BuildListManualFunction · 0.85
QueryMethod · 0.85
ExecuteMethod · 0.85
SmallSceneryRemovalMethod · 0.85
ClearSceneryFromTileMethod · 0.85
WallCheckObstructionMethod · 0.85
DemolishTracksMethod · 0.85
ApplyTrackTypeFixesFunction · 0.85
PaintTileElementBaseFunction · 0.85

Calls 2

IsTileLocationValidFunction · 0.85
GetFirstElementAtMethod · 0.80

Tested by 6

BuildListManualFunction · 0.68
NumLargeScenerySequencesFunction · 0.68
PasteElementAtFunction · 0.68
SortElementsAtFunction · 0.68
onScrollDrawMethod · 0.68
LoadTileMethod · 0.68