Skip to content

ViewOptions beta ​

Interface of @v12-engine/engine/ai

ts
export interface ViewOptions

What the view is handed beside the snapshot: the last think's view, whose roles it keeps where the game's definitions stand, and a game's own way of finding the roles (AiOptions.roles)

Members ​

before ​

ts
before?: AiView;

The view of the think before: what cost and did not change is kept from it (the roles, the player's reach)

roles ​

ts
roles?: RolesFinder;

A game's own say on what unit types are for, in place of the kit's inference (AiOptions.roles)

strength ​

ts
strength?: StrengthFormula;

A game's own formula for how strong a unit is, in place of the kit's (AiOptions.strength, BrainDef.strength)