Skip to content

five-on-it / packages/ai/src/police-drones / droneSystem

Function: droneSystem() ​

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

Defined in: packages/ai/src/police-drones.ts:139

One tick of the drones: a drone shot down is said on the radio, its wreck taken away after a while; one no longer needed flies off and goes; the others hold station over their player; then a drone is sent over each player whose stars ask for more, when it is time and the room has an actor to spare (room).

Parameters ​

ai ​

AiWorld

players ​

ReadonlyMap<number, number>

order ​

readonly Wanted[]

room ​

() => number

Returns ​

void