Skip to content

five-on-it / packages/ai/src/police-cops / copSystem

Function: copSystem() ​

copSystem(ai, players, hooks): void

Defined in: packages/ai/src/police-cops.ts:506

One tick of the cops and the transports (policeSystem calls it after the arrests): the budgets refilled, the pinned stars held, the cuffs counted, the transports driven, opened or arrived, the requests whose time is up forgotten.

Parameters ​

ai ​

AiWorld

players ​

ReadonlyMap<number, number>

hooks ​

CopHooks

Returns ​

void