Skip to content

GoalReport beta ​

Interface of @v12-engine/engine/ai

ts
export interface GoalReport

One goal as the picker last saw it: for the debug tools, and for "why did it do that"

Members ​

considerations ​

ts
considerations: {
        name: string;
        value: number;
        curved: number;
        asked?: false;
    }[];

Each question, its raw answer and how much that mattered. One after a question answered 0 is not asked (the goal is vetoed already): asked: false, its numbers 0

held ​

ts
held?: {
        units: number;
        ids: number[];
        strength: number;
        money?: Cost;
        since: number;
        until: number;
    };

What it holds: how many units (and which, ids), how strong together, the money, since when and until when (ticks)

id ​

ts
id: string;

The goal

picked ​

ts
picked: boolean;

Whether it ran this think

scope ​

ts
scope: GoalScope;

What it is about

score ​

ts
score: number;

Its score: the considerations' product, weighed

urgent ​

ts
urgent: boolean;

Whether it may break a commitment now

why ​

ts
why?: string;

Why it did not run, where it scored enough: cooldown, nothing to claim, or what it lost its claim to