Skip to content

CompositionReport beta ​

Interface of @v12-engine/engine/ai

ts
export interface CompositionReport

One type as the production plan weighs it, for the report: its share of the army wanted (target, 0..1), its share now (share), how well it answers their army (counter: 1 is as good as against anyone), and what the two come to (urge: the most urgent is trained next)

Members ​

counter ​

ts
counter: number;

How well the type answers their army: 1 is as good as against anyone

have ​

ts
have: number;

How many of the type the player has

share ​

ts
share: number;

How much of the army it is now, 0..1

target ​

ts
target: number;

How much of the army is wanted of the type, 0..1

type ​

ts
type: string;

The id of the unit type

urge ​

ts
urge: number;

How urgent it is to train the type next, from the target, the share and the counter