* Get slope of a tile on top of a (possible) foundation * If a tile does not have a foundation, the function returns the same as GetTileSlope. * * @param tile The tile of interest. * @return The slope on top of the foundation and the z of the foundation slope. */
| 384 | * @return The slope on top of the foundation and the z of the foundation slope. |
| 385 | */ |
| 386 | std::tuple<Slope, int> GetFoundationSlope(TileIndex tile) |
| 387 | { |
| 388 | auto [tileh, z] = GetTileSlopeZ(tile); |
| 389 | Foundation f = _tile_type_procs[GetTileType(tile)]->get_foundation_proc(tile, tileh); |
| 390 | z += ApplyFoundationToSlope(f, tileh); |
| 391 | return {tileh, z}; |
| 392 | } |
| 393 | |
| 394 | |
| 395 | bool HasFoundationNW(TileIndex tile, Slope slope_here, uint z_here) |
no test coverage detected