Skip to content

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

Interface: CopPlayer ​

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

A player who plays the police (a team of a game with police powers).

Properties ​

client ​

client: number

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

Their client id.


cuffing ​

cuffing: number

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

The robber they hold the interaction key at for the cuffs (client id, −1: none).


cuffTicks ​

cuffTicks: number

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

For how many ticks they have held it there.


dispatcher ​

dispatcher: boolean

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

Whether they took the Dispatcher's role (P2): orders at a point of the map.


nextOrder ​

nextOrder: number

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

No order of theirs is taken before this tick (the rate limit).


team ​

team: number

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

Their team's number (its index in the game's teams); the budget is the team's.