53 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.
RoadBits GetAnyRoadBits(TileIndex tile, RoadTramType rtt, bool straight_tunnel_bridge_entrance)
Returns the RoadBits on an arbitrary tile Special behaviour:
static bool HasTileRoadType(TileIndex t, RoadTramType rtt)
Check if a tile has a road or a tram road type.
A tile with road (or tram tracks)
Full road along the x-axis (south-west + north-east)
static DiagDirection GetRoadDepotDirection(TileIndex t)
Get the direction of the exit of a road depot.
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 RoadBits GetRoadBits(TileIndex t, RoadTramType rtt)
Get the present road bits for a specific road type.
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.
static bool MayHaveRoad(TileIndex t)
Test whether a tile can have road/tram types.
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.
Northeast, upper right on your monitor.
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.