Skip to content

AbilityAiView beta ​

Interface of @v12-engine/engine/ai

ts
export interface AbilityAiView

What a computer player sees as it weighs an ability, for the ability's ai to decide with (AbilityDef.ai)

Members ​

enemies ​

ts
enemies: EntityState[];

Enemy units it sees, near enough to the caster to matter

friends ​

ts
friends: EntityState[];

Its own and allied units that fight, near the caster

playerId ​

ts
playerId: PlayerId;

The player whose computer is weighing the ability

registry ​

ts
registry: Registry;

The registry of the game's definitions, for looking up unit types, abilities and buffs

snapshot ​

ts
snapshot: Snapshot;

The picture of the game the computer player has, as its seat sees it