five-on-it / packages/catalogue/src/region/roads / TUNNEL
Variable: TUNNEL
constTUNNEL:object
Defined in: packages/catalogue/src/region/roads.ts:35
Tunnels: where a road with tunnels: "auto" runs under the land.
Type Declaration
clear
readonlyclear:6.5=6.5
The land stands this far over the road, at its middle and across its cutting, to be a tunnel (m).
cost
readonlycost:0.4=0.4
What climbing more than its grade costs the search a tile, at most, where it may tunnel.
cut
readonlycut:9=9
How far beyond the road's edge its cutting reaches into the hill (its bed a vertex wider, its steep wall), where the land is checked (m).
minLength
readonlyminLength:16=16
A tunnel at least this long; a shorter stretch is a cutting (m).
reach
readonlyreach:128=128
The humps the road holds its grade under: up to twice this wide (m).