OpenTTD Source
12.0-beta2
|
Go to the documentation of this file.
53 return straight_tunnel_bridge_entrance ?
static DiagDirection GetRoadDepotDirection(TileIndex t)
Get the direction of the exit of a road depot.
uint32 TileIndex
The index/ID of a Tile.
@ ROAD_TILE_CROSSING
Level crossing.
static Axis DiagDirToAxis(DiagDirection d)
Convert a DiagDirection to the axis.
@ ROAD_X
Full road along the x-axis (south-west + north-east)
static bool IsDriveThroughStopTile(TileIndex t)
Is tile t a drive through road stop station?
static RoadBits GetCrossingRoadBits(TileIndex tile)
Get the road bits of a level crossing.
@ MP_ROAD
A tile with road (or tram tracks)
static RoadBits DiagDirToRoadBits(DiagDirection d)
Create the road-part which belongs to the given DiagDirection.
static RoadBits AxisToRoadBits(Axis a)
Create the road-part which belongs to the given Axis.
@ TRANSPORT_ROAD
Transport by road vehicle.
RoadBits
Enumeration for the road parts on a tile.
@ ROAD_NONE
No road-part is build.
@ ROAD_TILE_NORMAL
Normal road.
static RoadBits GetRoadBits(TileIndex t, RoadTramType rtt)
Get the present road bits for a specific road type.
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.
static RoadTileType GetRoadTileType(TileIndex t)
Get the type of the road tile.
static DiagDirection ReverseDiagDir(DiagDirection d)
Returns the reverse direction of the given DiagDirection.
@ MP_TUNNELBRIDGE
Tunnel entry/exit and bridge heads.
static DiagDirection GetRoadStopDir(TileIndex t)
Gets the direction the road stop entrance points towards.
static DiagDirection GetTunnelBridgeDirection(TileIndex t)
Get the direction pointing to the other end.
static bool IsRoadStopTile(TileIndex t)
Is tile t a road stop station?
@ ROAD_TILE_DEPOT
Depot (one entrance)
@ MP_STATION
A tile of a station.
@ ROAD_Y
Full road along the y-axis (north-west + south-east)
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...
@ DIAGDIR_NE
Northeast, upper right on your monitor.
static bool MayHaveRoad(TileIndex t)
Test whether a tile can have road/tram types.