Skip to content

five-on-it / packages/ai/src/police-heat / carHeatSystem

Function: carHeatSystem() ​

carHeatSystem(ai, players, sees): void

Defined in: packages/ai/src/police-heat.ts:167

One tick of the cars' Heat (see the module documentation): each cools on its own clock and goes at none or with its car; every CAR_HEAT.lookTicks, each car with Heat that the police's eyes have (sees) makes the players in it wanted at its stars at least (known, and the car theirs), or, empty, is where its player is looked for while unseen.

Parameters ​

ai ​

AiWorld

players ​

ReadonlyMap<number, number>

sees ​

(car) => boolean

Returns ​

void