five-on-it / packages/ai/src/wanted / PoliceBook
Interface: PoliceBook
Defined in: packages/ai/src/wanted.ts:179
The police's book: every player's Wanted level, the units out, the nail strips laid, the arrests not yet reported.
Properties
areas
areas:
object[]
Defined in: packages/ai/src/wanted.ts:195
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:191
The arrests since the server last took them.
enabled
enabled:
boolean
Defined in: packages/ai/src/wanted.ts:181
Whether the room has police (a game's rules.police).
nextDispatch
nextDispatch:
number
Defined in: packages/ai/src/wanted.ts:189
No unit is sent before this tick.
spawns
spawns:
SpawnPoint[]
Defined in: packages/ai/src/wanted.ts:193
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:187
The nail strips laid, in the order they were laid (nail-strips.ts).
units
units:
PoliceUnit[]
Defined in: packages/ai/src/wanted.ts:185
The units out, in the order they were sent.
wanted
wanted:
Wanted[]
Defined in: packages/ai/src/wanted.ts:183
Every player with a Wanted level, by ascending client id.