Skip to content

MapAi beta ​

Interface of @v12-engine/engine/ai

ts
export interface MapAi

What a map says of how its computer player plays (MapPlayer.data.ai, decision 6 of the AI plan), for a player the map gives the computer (controller: 'computer'): a difficulty and a personality by name, and settings (AiSettings: its flags, its build order as plans.order, its waves as waves.waves, any area's numbers). Plain data, as the map's file holds it

Members ​

brain ​

ts
brain?: string;

The brain the player is seated with, by id (Rules.brains): over its race's (GameAi.races), under the seat's

difficulty ​

ts
difficulty?: string;

The id of the difficulty the computer plays at, which a game's brain reads from its settings

personality ​

ts
personality?: string;

The id of the personality the computer plays with, which a game's brain reads from its settings

races ​

ts
races?: Record<string, AiSettings>;

Settings by the race the player plays (Rules.races), over settings: for a player whose race the lobby chooses or draws (random), a build order or waves for each

settings ​

ts
settings?: AiSettings;

Settings for the brain, over the ones its difficulty and personality give