OpenTTD Source
1.11.0-beta2
|
static bool IsTunnelTile(TileIndex t)
Is this a tunnel (entrance)?
uint32 TileIndex
The index/ID of a Tile.
static TileIndexDiff TileOffsByDiagDir(DiagDirection dir)
Convert a DiagDirection to a TileIndexDiff.
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?
static uint TileY(TileIndex tile)
Get the Y component of a tile.
static uint TileX(TileIndex tile)
Get the X component of a tile.
int32 TileIndexDiff
An offset value between to tiles.
bool IsTunnelInWay(TileIndex tile, int z)
Is there a tunnel in the way in any direction?
static bool IsValidTile(TileIndex tile)
Checks if a tile is valid.
static DiagDirection ReverseDiagDir(DiagDirection d)
Returns the reverse direction of the given DiagDirection.
DiagDirection
Enumeration for diagonal directions.
static DiagDirection GetTunnelBridgeDirection(TileIndex t)
Get the direction pointing to the other end.
static uint MapMaxY()
Gets the maximum Y coordinate within the map, including MP_VOID.
static uint MapMaxX()
Gets the maximum X coordinate within the map, including MP_VOID.
TileIndex GetOtherTunnelEnd(TileIndex tile)
Gets the other end of the tunnel.
@ DIAGDIR_NE
Northeast, upper right on your monitor.