Skip to content

five-on-it / packages/ai/src/police-tow / towSystem

Function: towSystem() ​

towSystem(ai, players, order, room, onTowed): void

Defined in: packages/ai/src/police-tow.ts:149

One tick of the sweep (see the module documentation): the jobs stepped (hooked, towed, called off, gone), and a truck sent to the next car of a player at six stars or more when it is time and the room has the actors (room).

Parameters ​

ai ​

AiWorld

players ​

ReadonlyMap<number, number>

order ​

readonly Wanted[]

room ​

() => number

onTowed ​

(job, place) => void

Returns ​

void