Skip to content

five-on-it / packages/ai/src/police-endgame / lockdownSystem

Function: lockdownSystem() ​

lockdownSystem(ai, players, order, room, hooks): void

Defined in: packages/ai/src/police-endgame.ts:44

The endgame's tick before the police's units are sent (see the module documentation): the perimeters and their seals, the lockdown, the tow trucks, the safe houses and the extractions.

Parameters ​

ai ​

AiWorld

players ​

ReadonlyMap<number, number>

order ​

readonly Wanted[]

room ​

() => number

hooks ​

ExtractionHooks

Returns ​

void