Skip to content

five-on-it / packages/ai/src/police-cops / CopOrder

Interface: CopOrder ​

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

An order a cop sends (P1's phone, P2's map): what, after which robber, or at which point.

Properties ​

at? ​

optional at?: object

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

The dispatcher's point on the map (m, P2).

x ​

x: number

z ​

z: number


kind ​

kind: CopOrderKind

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


target? ​

optional target?: number

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

The robber's client id (P1); the nearest the police know of when absent.