OpenTTD Source
1.11.0-beta2
|
uint32 TileIndex
The index/ID of a Tile.
TileIndex GetOtherBridgeEnd(TileIndex tile)
Starting at one bridge end finds the other bridge end.
static TileIndexDiff TileOffsByDiagDir(DiagDirection dir)
Convert a DiagDirection to a TileIndexDiff.
Foundation GetBridgeFoundation(Slope tileh, Axis axis)
Get the foundation for a bridge.
static Axis DiagDirToAxis(DiagDirection d)
Convert a DiagDirection to the axis.
int GetBridgeHeight(TileIndex t)
Get the height ('z') of a bridge.
Foundation
Enumeration for Foundations.
static bool IsBridgeTile(TileIndex t)
checks if there is a bridge on this tile
int32 TileIndexDiff
An offset value between to tiles.
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.
Slope GetTileSlope(TileIndex tile, int *h)
Return the slope of a given tile inside the map.
static DiagDirection ReverseDiagDir(DiagDirection d)
Returns the reverse direction of the given DiagDirection.
TileIndex GetSouthernBridgeEnd(TileIndex t)
Finds the southern end of a bridge starting at a middle tile.
Slope
Enumeration for the slope-type.
DiagDirection
Enumeration for diagonal directions.
static DiagDirection AxisToDiagDir(Axis a)
Converts an Axis to a DiagDirection.
static DiagDirection GetTunnelBridgeDirection(TileIndex t)
Get the direction pointing to the other end.
static Axis GetBridgeAxis(TileIndex t)
Get the axis of the bridge that goes over the tile.
uint ApplyFoundationToSlope(Foundation f, Slope *s)
Applies a foundation to a slope.