five-on-it / packages/ai/src/police-precrime / PRECRIME
Variable: PRECRIME
constPRECRIME:object
Defined in: packages/ai/src/police-precrime.ts:34
The numbers of the prediction and of the chokepoints.
Type Declaration
aheadMax
readonlyaheadMax:260=260
aheadMin
readonlyaheadMin:120=120
The units from ahead come out this far along the route at least, at most, and preferably (m).
aheadPreferred
readonlyaheadPreferred:180=180
bridgeHeight
readonlybridgeHeight:2.5=2.5
A road this much above the ground under it is a bridge (m).
junctionClear
readonlyjunctionClear:14=14
A chokepoint keeps this far from a junction's node (m): clear of its box.
longStretch
readonlylongStretch:80=80
A stretch this long without a junction is a chokepoint of its own (m).
onRoad
readonlyonRoad:3=3
A road this far from the player at most is the road they are on (m).
reach
readonlyreach:400=400
How far ahead the route is predicted (m).
roofMax
readonlyroofMax:12=12
roofMin
readonlyroofMin:2=2
A roof this much over the road, at least and at most, makes it a tunnel (m).
sampleStep
readonlysampleStep:5=5
The road is sampled this often along the route for chokepoints (m).