Skip to content

five-on-it / packages/ai/src/police-helicopter / helicopterSystem

Function: helicopterSystem() ​

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

Defined in: packages/ai/src/police-helicopter.ts:166

One tick of the helicopters: one shot down lies a while and another comes later; one no longer needed (the stars down, the weather closing in) flies off; the others hold station, light the player, fire and drop strips; then one is sent over each player whose stars ask for it, when the weather allows (else the radio says it is grounded, once), it is time and the room has its actors (room).

Parameters ​

ai ​

AiWorld

players ​

ReadonlyMap<number, number>

order ​

readonly Wanted[]

room ​

() => number

Returns ​

void