Skip to content

LaneState beta ​

Interface of @v12-engine/engine/ai

ts
export interface LaneState

A lane as it stands this think, for one side: its waves' fronts (in cells along it from its side's end), who is on it, the towers by it

Members ​

allies ​

ts
allies: EntityState[];

The heroes on it: its allies' (the player's own left out), and theirs

enemies ​

ts
enemies: EntityState[];

Their heroes on the lane

front ​

ts
front?: number;

How far along its side's furthest minion is: none with no minion of its side on the lane

lane ​

ts
lane: LaneSide;

The lane, as its side reads it

ours ​

ts
ours: EntityState[];

Its side's minions on it (the player's own and its allies'), and theirs

ourTowers ​

ts
ourTowers: {
        tower: EntityState;
        at: number;
    }[];

The towers by it, its side's and theirs (theirs as remembered), with how far along each stands

theirFront ​

ts
theirFront?: number;

How far along their nearest minion is: none with none of theirs on it

theirs ​

ts
theirs: EntityState[];

Their minions on the lane

theirTowers ​

ts
theirTowers: {
        tower: EntityState;
        at: number;
    }[];

Their towers by the lane, each with how far along it stands in cells