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