OpenTTD
|
Functions that have tunnels and bridges in common. More...
Go to the source code of this file.
Functions | |
static DiagDirection | GetTunnelBridgeDirection (TileIndex t) |
Get the direction pointing to the other end. More... | |
static TransportType | GetTunnelBridgeTransportType (TileIndex t) |
Tunnel: Get the transport type of the tunnel (road or rail) Bridge: Get the transport type of the bridge's ramp. More... | |
static bool | HasTunnelBridgeSnowOrDesert (TileIndex t) |
Tunnel: Is this tunnel entrance in a snowy or desert area? Bridge: Does the bridge ramp lie in a snow or desert area? More... | |
static void | SetTunnelBridgeSnowOrDesert (TileIndex t, bool snow_or_desert) |
Tunnel: Places this tunnel entrance in a snowy or desert area, or takes it out of there. More... | |
static TileIndex | GetOtherTunnelBridgeEnd (TileIndex t) |
Determines type of the wormhole and returns its other end. More... | |
static bool | HasTunnelBridgeReservation (TileIndex t) |
Get the reservation state of the rail tunnel/bridge. More... | |
static void | SetTunnelBridgeReservation (TileIndex t, bool b) |
Set the reservation state of the rail tunnel/bridge. More... | |
static TrackBits | GetTunnelBridgeReservationTrackBits (TileIndex t) |
Get the reserved track bits for a rail tunnel/bridge. More... | |
Functions that have tunnels and bridges in common.
Definition in file tunnelbridge_map.h.
Determines type of the wormhole and returns its other end.
t | one end |
Definition at line 80 of file tunnelbridge_map.h.
Referenced by ClearPathReservation(), CmdConvertRail(), Train::Crash(), MarkBridgeDirty(), PlaceRail_Bridge(), PlaceRoad_Bridge(), RemoveRoad(), and YapfTrainCheckReverse().
|
inlinestatic |
Get the direction pointing to the other end.
Tunnel: Get the direction facing into the tunnel Bridge: Get the direction pointing onto the bridge
t | The tile to analyze |
Definition at line 28 of file tunnelbridge_map.h.
Referenced by AdjustTileh(), CFollowTrackT< Ttr_type_, VehicleType, T90deg_turns_allowed_, Tmask_reserved_tracks >::CanEnterNewTile(), CanEnterTile(), ClearPathReservation(), CmdBuildLongRoad(), CmdConvertRail(), CollectTrackbitsFromCrashedVehiclesEnum(), DeleteLastWagon(), DoClearBridge(), DrawRailCatenaryOnTunnel(), DrawTile_TunnelBridge(), CFollowTrackT< Ttr_type_, VehicleType, T90deg_turns_allowed_, Tmask_reserved_tracks >::FollowTileExit(), GetAnyRoadBits(), GetBridgeEnd(), GetBridgeHeight(), GetOtherTunnelEnd(), GetRailTrackBitsUniversal(), GetTunnelBridgeReservationTrackBits(), MarkBridgeDirty(), RemoveRoad(), Train::ReserveTrackUnderConsist(), CYapfCostBase::stSlopeCost(), TrainCanLeaveTile(), and YapfTrainCheckReverse().
Get the reserved track bits for a rail tunnel/bridge.
t | the tile |
Definition at line 119 of file tunnelbridge_map.h.
References DiagDirToDiagTrackBits(), GetTunnelBridgeDirection(), HasTunnelBridgeReservation(), and TRACK_BIT_NONE.
Referenced by GetReservedTrackbits().
|
inlinestatic |
Tunnel: Get the transport type of the tunnel (road or rail) Bridge: Get the transport type of the bridge's ramp.
t | The tile to analyze |
Definition at line 41 of file tunnelbridge_map.h.
Referenced by CanEnterTileOwnerCheck(), CanFollowRoad(), CmdConvertRail(), DrawBridgeMiddle(), DrawTile_TunnelBridge(), GetAnyRoadBits(), GetRailTrackBitsUniversal(), GetReservedTrackbits(), SmallMapWindow::GetTileColours(), GetTileRailType(), and RemoveRoad().
|
inlinestatic |
Get the reservation state of the rail tunnel/bridge.
t | the tile |
Definition at line 93 of file tunnelbridge_map.h.
Referenced by CmdConvertRail(), and GetTunnelBridgeReservationTrackBits().
|
inlinestatic |
Tunnel: Is this tunnel entrance in a snowy or desert area? Bridge: Does the bridge ramp lie in a snow or desert area?
t | The tile to analyze |
Definition at line 54 of file tunnelbridge_map.h.
|
inlinestatic |
Set the reservation state of the rail tunnel/bridge.
t | the tile |
b | the reservation state |
Definition at line 106 of file tunnelbridge_map.h.
Referenced by ClearPathReservation(), and Train::Crash().
|
inlinestatic |
Tunnel: Places this tunnel entrance in a snowy or desert area, or takes it out of there.
Bridge: Sets whether the bridge ramp lies in a snow or desert area.
t | the tunnel entrance / bridge ramp tile |
snow_or_desert | is the entrance/ramp in snow or desert (true), when not in snow and not in desert false |
Definition at line 68 of file tunnelbridge_map.h.