Skip to content

five-on-it / packages/ai/src/police-precrime / PRECRIME

Variable: PRECRIME ​

const PRECRIME: object

Defined in: packages/ai/src/police-precrime.ts:34

The numbers of the prediction and of the chokepoints.

Type Declaration ​

aheadMax ​

readonly aheadMax: 260 = 260

aheadMin ​

readonly aheadMin: 120 = 120

The units from ahead come out this far along the route at least, at most, and preferably (m).

aheadPreferred ​

readonly aheadPreferred: 180 = 180

bridgeHeight ​

readonly bridgeHeight: 2.5 = 2.5

A road this much above the ground under it is a bridge (m).

junctionClear ​

readonly junctionClear: 14 = 14

A chokepoint keeps this far from a junction's node (m): clear of its box.

longStretch ​

readonly longStretch: 80 = 80

A stretch this long without a junction is a chokepoint of its own (m).

onRoad ​

readonly onRoad: 3 = 3

A road this far from the player at most is the road they are on (m).

reach ​

readonly reach: 400 = 400

How far ahead the route is predicted (m).

roofMax ​

readonly roofMax: 12 = 12

roofMin ​

readonly roofMin: 2 = 2

A roof this much over the road, at least and at most, makes it a tunnel (m).

sampleStep ​

readonly sampleStep: 5 = 5

The road is sampled this often along the route for chokepoints (m).