ArmySighting beta
Interface of @v12-engine/engine/ai
ts
export interface ArmySightingA group of the enemy's fighters, seen together (enemy.armySeen): where its middle was, the tick, how many, of what types, with how much health and strength, whose (the owner of most of them)
Members
at
ts
at: Vec2;Where the middle of the group was, in cells
count
ts
count: number;How many fighters the group has
health
ts
health: number;Their health together, as seen
heroes
ts
heroes: number;How many heroes are among them
owner
ts
owner: PlayerId;The player the most of the group belong to
strength
ts
strength: number;Their strength together, as seen (Strength.of, with the health each had left)
tick
ts
tick: number;The tick the group was seen at
types
ts
types: Record<string, number>;How many of each unit type are in the group, by type id