Skip to content

five-on-it / packages/ai/src/police-cops-state / CopBook

Interface: CopBook ​

Defined in: packages/ai/src/police-cops-state.ts:105

The cops' and the transports' share of the police's book.

Properties ​

cops ​

cops: CopPlayer[]

Defined in: packages/ai/src/police-cops-state.ts:107

The cop players, by ascending client id.


crewOf ​

crewOf: (client) => readonly number[]

Defined in: packages/ai/src/police-cops-state.ts:127

Whether a player has a crew who could free them (a teammate of a run, a member of their party in the room): a busted player without one is arrested at once, as before (M8's free roam). The server's to say; nobody by default.

Parameters ​

client ​

number

Returns ​

readonly number[]


outcomes ​

outcomes: CopOutcome[]

Defined in: packages/ai/src/police-cops-state.ts:121

What happened since the server last took it.


pinned ​

pinned: PinnedStars[]

Defined in: packages/ai/src/police-cops-state.ts:113

The players whose stars are pinned, by ascending client id.


requests ​

requests: CopRequest[]

Defined in: packages/ai/src/police-cops-state.ts:111

The backup the cops called, in the order it was sent.


stations ​

stations: object[]

Defined in: packages/ai/src/police-cops-state.ts:119

Where the police stations are (m): a transport drives to the nearest.

x ​

x: number

z ​

z: number


teams ​

teams: CopTeam[]

Defined in: packages/ai/src/police-cops-state.ts:109

The teams of cops, by ascending team number.


transportCount ​

transportCount: number

Defined in: packages/ai/src/police-cops-state.ts:117

The transports that set off, all told: the next one's number.


transports ​

transports: Transport[]

Defined in: packages/ai/src/police-cops-state.ts:115

The transports on their way, in the order they set off.