Skip to main content

TargetOperation

An abstract class in Root.Township, Alta.Intelligence.

One scoring rule a creature action uses to rate a possible target (a sense, a stat, distance and so on). The decider multiplies each result by Weight.

Constructors​

MemberWhat it is
protected TargetOperation()Creates a TargetOperation with default values.

Properties​

MemberWhat it is
float Weight { get; private set; }Multiplier on this operation's result. 1 by default.

Methods​

MemberWhat it is
abstract float Evaluate(Agent agent, ITarget target)Scores a target for an agent.
TargetOperation SetWeight(float weight)Sets Weight and returns the operation, for chaining.

Used in​

Members of other types that take, return or hold a TargetOperation: