ActiveThreaten
A class in Root.Township, Alta.Intelligence.
Action where the agent faces and threatens its target. If the target comes too close it finishes and switches to the ChangeTo action set; if it leaves, it cancels.
- Listed in Creatures and AI
- Inherits or implements
BasicActiveAction<Agent, AgentThreatenSettings>
Constructors
| Member | What it is |
|---|---|
ActiveThreaten() | Creates an ActiveThreaten with default values. |
Fields
2 private and internal fields
Methods
2 private and internal methods
| Member | What it is |
|---|---|
private void HandleCancelled(IActiveAction cancelled) | Clears the facing target. |
private void HandleFinished(IActiveAction finished) | Switches the agent to the ChangeTo action set and clears facing. |