Skip to content

Threat beta ​

Interface of @v12-engine/engine/ai

ts
export interface Threat

What the threat map reads at a place: the strength of the friendly units (one's own and allies') and of the enemy units (rivals' and creeps') that can reach it, and the difference

Members ​

enemy ​

ts
enemy: number;

The strength of rivals' and creeps' units that reach it

friendly ​

ts
friendly: number;

The strength of one's own and allies' units that reach the place

net ​

ts
net: number;

friendly - enemy: above 0 where one's own side is stronger