Skip to content

StrengthInput beta ​

Interface of @v12-engine/engine/ai

ts
export interface StrengthInput

What a strength formula is given of one unit or type: its definition, its stats as they stand (the type's, with what the snapshot shows of a seen unit's own: upgrades, items, levels, buffs), the entity where there is one (its health, its level) and the view, for the roles and the registry

Members ​

def ​

ts
def: UnitTypeDef;

The unit type

entity ​

ts
entity?: EntityState;

The unit, where one is weighed; none for a type

health ​

ts
health: number;

0..1: the health it has left, as a part of its most; 1 for a type

stats ​

ts
stats: Readonly<Stats>;

The stats as they stand: the type's, with a seen unit's own over them

view ​

ts
view: AiView;

The picture it is weighed in: for the roles (view.roles) and the definitions (view.registry)