Skip to content

five-on-it / packages/ai/src/wanted / PoliceBook

Interface: PoliceBook ​

Defined in: packages/ai/src/wanted.ts:348

The police's book: every player's Wanted level, the units out, the nail strips laid, the roadblocks set, the rolling blocks forming, the drones up, the junctions turned red, the radio's lines, the arrests not yet reported, the heavy response's own (police-heavy.ts), the SWAT teams, the K9 units and the negotiator's talks.

Properties ​

areas ​

areas: object[]

Defined in: packages/ai/src/wanted.ts:386

A game's spawn areas of the police (circles): the cars come out on the roads inside them.

radius ​

radius: number

x ​

x: number

z ​

z: number


arrests ​

arrests: Arrest[]

Defined in: packages/ai/src/wanted.ts:382

The arrests since the server last took them.


cops ​

cops: CopBook

Defined in: packages/ai/src/wanted.ts:394

The players who play the police and the prison transports (police-cops-state.ts).


drones ​

drones: PoliceDrone[]

Defined in: packages/ai/src/wanted.ts:364

The drones up, in the order they were sent (police-drones.ts).


enabled ​

enabled: boolean

Defined in: packages/ai/src/wanted.ts:350

Whether the room has police (a game's rules.police).


gridlocks ​

gridlocks: Gridlock[]

Defined in: packages/ai/src/wanted.ts:366

The junctions turned red ahead of a player (police-signals.ts).


heavy ​

heavy: HeavyBook

Defined in: packages/ai/src/wanted.ts:388

The heavy response's (seven stars): the helicopters, the snipers, the boats, the fittings.


k9 ​

k9: K9Unit[]

Defined in: packages/ai/src/wanted.ts:372

The K9 units out (a handler and a police dog), in the order they came (police-k9.ts).


lockdown ​

lockdown: LockdownBook

Defined in: packages/ai/src/wanted.ts:390

The endgame's (six to ten stars): the perimeters, the lockdown, the tow trucks, the extractions, the safe houses, the budget, the news (police-lockdown.ts).


maxStars ​

maxStars: number

Defined in: packages/ai/src/wanted.ts:352

The most stars a player may have in the room (a game's rules.maxStars, 0 to 10).


nextDispatch ​

nextDispatch: number

Defined in: packages/ai/src/wanted.ts:380

No unit is sent before this tick.


radio ​

radio: RadioEntry[]

Defined in: packages/ai/src/wanted.ts:376

The radio's last lines (police-radio.ts), oldest first.


radioCount ​

radioCount: number

Defined in: packages/ai/src/wanted.ts:378

The lines the radio has said, all told: the next one's number.


roadblocks ​

roadblocks: Roadblock[]

Defined in: packages/ai/src/wanted.ts:360

The roadblocks set, in the order they were set (police-roadblocks.ts).


rolling ​

rolling: RollingBlock[]

Defined in: packages/ai/src/wanted.ts:362

The rolling blocks forming, in the order they were sent (police-roadblocks.ts).


spawns ​

spawns: SpawnPoint[]

Defined in: packages/ai/src/wanted.ts:384

Where the police cars come out when the level says (its police spawn points, a game's places of that role); the roads around the player otherwise.


strips ​

strips: PoliceStrip[]

Defined in: packages/ai/src/wanted.ts:358

The nail strips laid, in the order they were laid (nail-strips.ts).


swat ​

swat: SwatTeam[]

Defined in: packages/ai/src/wanted.ts:368

The SWAT teams out, in the order they were sent (police-swat.ts).


swatCount ​

swatCount: number

Defined in: packages/ai/src/wanted.ts:370

The SWAT teams sent, all told: the next one's number.


talks ​

talks: Talk[]

Defined in: packages/ai/src/wanted.ts:374

The negotiator's talks under way, by player, in the order they began (police-negotiator.ts).


tech ​

tech: TechBook

Defined in: packages/ai/src/wanted.ts:392

The smart city's tech and the robbers' answers to it (police-tech-state.ts).


units ​

units: PoliceUnit[]

Defined in: packages/ai/src/wanted.ts:356

The units out, in the order they were sent.


wanted ​

wanted: Wanted[]

Defined in: packages/ai/src/wanted.ts:354

Every player with a Wanted level, by ascending client id.