AttackWave beta
Interface of @v12-engine/engine/ai
export interface AttackWaveOne wave (the classic attack wave): its group, when it goes, how much of it is enough, how long it gathers, whether it goes again, together or not, and where to
Members
after
after?: number;Seconds after the wave before it (after the start, for the first) before it may go: 0 when left out
gatherFor
gatherFor?: number;Seconds it gathers at the rally before it goes, whoever is late: 15 when left out
group
group: string | Record<string, number>;Its group: a group's name (WavesOptions.groups), or the units in place ({ footman: 4 })
minForces
minForces?: number;The share of its group that is enough to go with, 0 to 1: all of it when left out
rally
rally?: Vec2 | string;Where it gathers: a place, or a name the map or the rules gave. A little out of home towards the target when left out
repeat
repeat?: boolean | number;Whether it goes again once sent: true for ever, a number for so many times in all. Once when left out
target
target?: WaveTarget;Where it goes: their base nearest home when left out
together
together?: boolean;Whether it waits for its team's attack together (TeamOptions.together, C5)
when
when?: AiCondition;Only when this holds as its turn comes: a wave whose condition fails is skipped