Skip to content

five-on-it / packages/catalogue/src/region/roads / TUNNEL

Variable: TUNNEL ​

const TUNNEL: object

Defined in: packages/catalogue/src/region/roads.ts:35

Tunnels: where a road with tunnels: "auto" runs under the land.

Type Declaration ​

clear ​

readonly clear: 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 ​

readonly cost: 0.4 = 0.4

What climbing more than its grade costs the search a tile, at most, where it may tunnel.

cut ​

readonly cut: 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 ​

readonly minLength: 16 = 16

A tunnel at least this long; a shorter stretch is a cutting (m).

reach ​

readonly reach: 128 = 128

The humps the road holds its grade under: up to twice this wide (m).