OpenTTD Source
20240917-master-g9ab0a47812
|
static debug_inline uint TileY(TileIndex tile)
Get the Y component of a tile.
@ DIAGDIR_NE
Northeast, upper right on your monitor.
bool IsTunnelTile(Tile t)
Is this a tunnel (entrance)?
static debug_inline uint MaxX()
Gets the maximum X coordinate within the map, including MP_VOID.
int GetTileZ(TileIndex tile)
Get bottom height of the tile.
bool IsTunnelInWayDir(TileIndex tile, int z, DiagDirection dir)
Is there a tunnel in the way in the given direction?
DiagDirection
Enumeration for diagonal directions.
DiagDirection ReverseDiagDir(DiagDirection d)
Returns the reverse direction of the given DiagDirection.
bool IsTunnelInWay(TileIndex tile, int z)
Is there a tunnel in the way in any direction?
int32_t TileIndexDiff
An offset value between two tiles.
bool IsValidTile(Tile tile)
Checks if a tile is valid.
TileIndexDiff TileOffsByDiagDir(DiagDirection dir)
Convert a DiagDirection to a TileIndexDiff.
static uint MaxY()
Gets the maximum Y coordinate within the map, including MP_VOID.
TileIndex GetOtherTunnelEnd(TileIndex tile)
Gets the other end of the tunnel.
static debug_inline uint TileX(TileIndex tile)
Get the X component of a tile.
DiagDirection GetTunnelBridgeDirection(Tile t)
Get the direction pointing to the other end.