TileIndex GetOtherBridgeEnd(TileIndex tile)
Starting at one bridge end finds the other bridge end.
uint ApplyFoundationToSlope(Foundation f, Slope *s)
Applies a foundation to a slope.
int32 TileIndexDiff
An offset value between to tiles.
static bool IsBridgeTile(TileIndex t)
checks if there is a bridge on this tile
int GetBridgeHeight(TileIndex t)
Get the height ('z') of a bridge.
TileIndex GetNorthernBridgeEnd(TileIndex t)
Finds the northern end of a bridge starting at a middle tile.
Slope GetTileSlope(TileIndex tile, int *h)
Return the slope of a given tile inside the map.
static TileIndexDiff TileOffsByDiagDir(DiagDirection dir)
Convert a DiagDirection to a TileIndexDiff.
Foundation
Enumeration for Foundations.
Foundation GetBridgeFoundation(Slope tileh, Axis axis)
Get the foundation for a bridge.
static DiagDirection ReverseDiagDir(DiagDirection d)
Returns the reverse direction of the given DiagDirection.
Definition of base types and functions in a cross-platform compatible way.
A number of safeguards to prevent using unsafe methods.
DiagDirection
Enumeration for diagonal directions.
TileIndex GetSouthernBridgeEnd(TileIndex t)
Finds the southern end of a bridge starting at a middle tile.
static DiagDirection GetTunnelBridgeDirection(TileIndex t)
Get the direction pointing to the other end.
static TileIndex GetBridgeEnd(TileIndex tile, DiagDirection dir)
Finds the end of a bridge in the specified direction starting at a middle tile.
static Axis GetBridgeAxis(TileIndex t)
Get the axis of the bridge that goes over the tile.
static Axis DiagDirToAxis(DiagDirection d)
Convert a DiagDirection to the axis.
uint32 TileIndex
The index/ID of a Tile.
Slope
Enumeration for the slope-type.
Functions related to OTTD's landscape.
Functions that have tunnels and bridges in common.
static DiagDirection AxisToDiagDir(Axis a)
Converts an Axis to a DiagDirection.