55 return straight_tunnel_bridge_entrance ?
static TileType GetTileType(TileIndex tile)
Get the tiletype of a given tile.
static TransportType GetTunnelBridgeTransportType(TileIndex t)
Tunnel: Get the transport type of the tunnel (road or rail) Bridge: Get the transport type of the bri...
Maps accessors for stations.
A tile with road (or tram tracks)
Full road along the x-axis (south-west + north-east)
static bool HasTileRoadType(TileIndex t, RoadType rt)
Check if a tile has a specific road type.
static RoadBits GetRoadBits(TileIndex t, RoadType rt)
Get the present road bits for a specific road type.
Northeast, upper right on your monitor.
static DiagDirection GetRoadDepotDirection(TileIndex t)
Get the direction of the exit of a road depot.
RoadType
The different roadtypes we support.
static bool IsDriveThroughStopTile(TileIndex t)
Is tile t a drive through road stop station?
static RoadBits DiagDirToRoadBits(DiagDirection d)
Create the road-part which belongs to the given DiagDirection.
static DiagDirection GetRoadStopDir(TileIndex t)
Gets the direction the road stop entrance points towards.
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.
RoadBits
Enumeration for the road parts on a tile.
RoadBits GetAnyRoadBits(TileIndex tile, RoadType rt, bool straight_tunnel_bridge_entrance)
Returns the RoadBits on an arbitrary tile Special behaviour:
static DiagDirection GetTunnelBridgeDirection(TileIndex t)
Get the direction pointing to the other end.
static RoadBits GetCrossingRoadBits(TileIndex tile)
Get the road bits of a level crossing.
static Axis DiagDirToAxis(DiagDirection d)
Convert a DiagDirection to the axis.
static RoadTileType GetRoadTileType(TileIndex t)
Get the type of the road tile.
Tunnel entry/exit and bridge heads.
uint32 TileIndex
The index/ID of a Tile.
Transport by road vehicle.
static bool IsRoadStopTile(TileIndex t)
Is tile t a road stop station?
Functions that have tunnels and bridges in common.
Full road along the y-axis (north-west + south-east)
static RoadBits AxisToRoadBits(Axis a)
Create the road-part which belongs to the given Axis.