Skip to content

ThreatReport beta ​

Interface of @v12-engine/engine/ai

ts
export interface ThreatReport

The threat map as a computer player read it last think (ThreatMap.cells, on the ground, the enemy structures it remembers counted): what the game view's AI overlay draws as heat over the ground. The size of a cell, the grid's cells across and down, and each cell with something in it as [col, row, friendly, enemy]

Members ​

cell ​

ts
cell: number;

The side of a grid cell, in cells of the map

cells ​

ts
cells: [col: number, row: number, friendly: number, enemy: number][];

Each grid cell with something in it as [col, row, friendly, enemy], the strength of each side

cols ​

ts
cols: number;

How many grid cells across

rows ​

ts
rows: number;

How many grid cells down