Skip to content

Consideration beta ​

Interface of @v12-engine/engine/ai

ts
export interface Consideration

One question a goal asks of what it sees, and how much the answer matters: read gives the raw number, curve turns it into 0..1. The report keeps both

Members ​

curve ​

ts
curve: Curve;

How much the number matters, 0..1

name ​

ts
name: string;

What it asks, for the report: "intruders at my buildings"

read ​

ts
read: (ai: Brain) => number;

The raw number, read from the brain each think: cheap, or cached for the think (ai.cache)