Header file for things common for tunnels and bridges. More...
#include "map_func.h"
Go to the source code of this file.
Functions | |
static uint | GetTunnelBridgeLength (TileIndex begin, TileIndex end) |
Calculates the length of a tunnel or a bridge (without end tiles). | |
Variables | |
static const uint | MAX_BRIDGE_HEIGHT = 15 |
Maximum height of bridge above ground. | |
TileIndex | _build_tunnel_endtile |
The end of a tunnel; as hidden return from the tunnel build command for GUI purposes. |
Header file for things common for tunnels and bridges.
Definition in file tunnelbridge.h.
Calculates the length of a tunnel or a bridge (without end tiles).
begin | The begin of the tunnel or bridge. | |
end | The end of the tunnel or bridge. |
Definition at line 29 of file tunnelbridge.h.
References abs(), TileX(), and TileY().
Referenced by AfterLoadCompanyStats(), CmdBuildBridge(), CmdBuildRoad(), CmdBuildSingleSignal(), CmdConvertRail(), CmdRemoveSingleSignal(), DoClearBridge(), DoClearTunnel(), DrawBridgeMiddle(), DrawCatenaryOnBridge(), GetRailTrackBitsUniversal(), CopyPaste::internal_PasteArea(), RemoveRoad(), and ShowBuildBridgeWindow().
const uint MAX_BRIDGE_HEIGHT = 15 [static] |
Maximum height of bridge above ground.
Used when building bridges and terrafrming below bridges.
Definition at line 21 of file tunnelbridge.h.
Referenced by CmdBuildBridge(), and CmdTerraformLand().