SameTarget
A class in Root.Township, Alta.Intelligence.
Scoring rule that returns one value if the target is the creature's current target and another if not. Used to make creatures stick to or switch targets.
- Listed in Creatures and AI
- Inherits or implements
TargetOperation
Constructors
| Member | What it is |
|---|---|
SameTarget(float sameValue, float differentValue = 1) | Creates a SameTarget from sameValue and differentValue. |
Fields
2 private and internal fields
Methods
| Member | What it is |
|---|---|
override float Evaluate(Agent agent, ITarget target) | Returns sameValue if the target is agent.Target, else differentValue. |
override string ToString() | Shows the two values. |