OpenTTD Source
20240917-master-g9ab0a47812
|
TileIndex GetOtherBridgeEnd(TileIndex tile)
Starting at one bridge end finds the other bridge end.
Foundation GetBridgeFoundation(Slope tileh, Axis axis)
Get the foundation for a bridge.
Axis DiagDirToAxis(DiagDirection d)
Convert a DiagDirection to the axis.
int GetBridgeHeight(TileIndex t)
Get the height ('z') of a bridge.
DiagDirection
Enumeration for diagonal directions.
Foundation
Enumeration for Foundations.
DiagDirection ReverseDiagDir(DiagDirection d)
Returns the reverse direction of the given DiagDirection.
static TileIndex GetBridgeEnd(TileIndex tile, DiagDirection dir)
Finds the end of a bridge in the specified direction starting at a middle tile.
TileIndex GetNorthernBridgeEnd(TileIndex t)
Finds the northern end of a bridge starting at a middle tile.
DiagDirection AxisToDiagDir(Axis a)
Converts an Axis to a DiagDirection.
uint ApplyFoundationToSlope(Foundation f, Slope &s)
Applies a foundation to a slope.
bool IsBridgeTile(Tile t)
checks if there is a bridge on this tile
int32_t TileIndexDiff
An offset value between two tiles.
TileIndex GetSouthernBridgeEnd(TileIndex t)
Finds the southern end of a bridge starting at a middle tile.
TileIndexDiff TileOffsByDiagDir(DiagDirection dir)
Convert a DiagDirection to a TileIndexDiff.
Axis GetBridgeAxis(Tile t)
Get the axis of the bridge that goes over the tile.
std::tuple< Slope, int > GetTileSlopeZ(TileIndex tile)
Return the slope of a given tile inside the map.
DiagDirection GetTunnelBridgeDirection(Tile t)
Get the direction pointing to the other end.