OpenTTD Source
20240917-master-g9ab0a47812
|
Go to the documentation of this file.
53 return straight_tunnel_bridge_entrance ?
@ DIAGDIR_NE
Northeast, upper right on your monitor.
RoadBits
Enumeration for the road parts on a tile.
@ ROAD_Y
Full road along the y-axis (north-west + south-east)
@ ROAD_TILE_CROSSING
Level crossing.
Axis DiagDirToAxis(DiagDirection d)
Convert a DiagDirection to the axis.
Wrapper class to abstract away the way the tiles are stored.
DiagDirection GetRoadStopDir(Tile t)
Gets the direction the road stop entrance points towards.
@ MP_ROAD
A tile with road (or tram tracks)
RoadBits GetCrossingRoadBits(Tile tile)
Get the road bits of a level crossing.
@ TRANSPORT_ROAD
Transport by road vehicle.
static debug_inline TileType GetTileType(Tile tile)
Get the tiletype of a given tile.
DiagDirection GetRoadDepotDirection(Tile t)
Get the direction of the exit of a road depot.
@ ROAD_TILE_NORMAL
Normal road.
bool MayHaveRoad(Tile t)
Test whether a tile can have road/tram types.
DiagDirection ReverseDiagDir(DiagDirection d)
Returns the reverse direction of the given DiagDirection.
bool HasTileRoadType(Tile t, RoadTramType rtt)
Check if a tile has a road or a tram road type.
static debug_inline RoadTileType GetRoadTileType(Tile t)
Get the type of the road tile.
@ MP_TUNNELBRIDGE
Tunnel entry/exit and bridge heads.
RoadBits DiagDirToRoadBits(DiagDirection d)
Create the road-part which belongs to the given DiagDirection.
RoadBits GetAnyRoadBits(Tile tile, RoadTramType rtt, bool straight_tunnel_bridge_entrance)
Returns the RoadBits on an arbitrary tile Special behaviour:
@ ROAD_TILE_DEPOT
Depot (one entrance)
@ MP_STATION
A tile of a station.
TransportType GetTunnelBridgeTransportType(Tile t)
Tunnel: Get the transport type of the tunnel (road or rail) Bridge: Get the transport type of the bri...
RoadBits GetRoadBits(Tile t, RoadTramType rtt)
Get the present road bits for a specific road type.
@ ROAD_NONE
No road-part is build.
bool IsAnyRoadStopTile(Tile t)
Is tile t a road stop station?
@ ROAD_X
Full road along the x-axis (south-west + north-east)
RoadBits AxisToRoadBits(Axis a)
Create the road-part which belongs to the given Axis.
bool IsDriveThroughStopTile(Tile t)
Is tile t a drive through road stop station or waypoint?
DiagDirection GetTunnelBridgeDirection(Tile t)
Get the direction pointing to the other end.