Skip to content

five-on-it / packages/ai/src/police-lockdown / perimeterSystem

Function: perimeterSystem() ​

perimeterSystem(ai, players, order, room): void

Defined in: packages/ai/src/police-lockdown.ts:357

One tick of the perimeters and the lockdown (see the module documentation): each wanted player's ring drawn, closed in or drawn again, its seals set or cleared; the garages closed, the traffic pulled over, the civilians stepping out.

Parameters ​

ai ​

AiWorld

players ​

ReadonlyMap<number, number>

order ​

readonly Wanted[]

room ​

() => number

Returns ​

void