Skip to content

AiSettings beta ​

Interface of @v12-engine/engine/ai

ts
export interface AiSettings

What a brain's areas play by, by area, each under its own names (see the file's comment): what every layer gives, from the brain's definition to the seat. Plain data where a lobby, a map or a save holds it; a function in it is code, not kept in a save

Members ​

army ​

ts
army?: MeleeArmyOptions;

The melee army: when it attacks, how many go, how a wave goes (melee.army)

defence ​

ts
defence?: DefenceOptions;

What it defends and how (Defence)

economy ​

ts
economy?: EconomyOptions;

The workers and the bases (Economy)

flags ​

ts
flags?: AiFlags;

The classic flags (see the file's comment)

heroes ​

ts
heroes?: MeleeHeroesOptions;

The melee player's heroes: how many, and from when (melee.heroes)

lanes ​

ts
lanes?: LanesPlayOptions;

A lanes brain's play (lanes)

micro ​

ts
micro?: MicroOptions;

How its units fight (Micro)

plans ​

ts
plans?: PlansOptions;

What it builds, trains and researches, and in what order (Plans)

scouting ​

ts
scouting?: ScoutingOptions;

How often it looks and with whom (Scouting)

squads ​

ts
squads?: SquadsOptions;

How its squads go, and the tasks they may be given (Squads)

team ​

ts
team?: TeamOptions;

How it plays with its team (Team)

waves ​

ts
waves?: WavesOptions;

The waves it was given (Waves)

weights ​

ts
weights?: Record<string, number>;

How much each goal weighs, by its id (1 when left out): the picker's (Goals)