IActiveAction
An interface in Root.Township, Alta.Intelligence.
A creature action that is running right now, started from an IAction for one agent. Raises Finished or Cancelled once, when it ends.
- Listed in Creatures and AI
- Derived types
BasicActiveAction<TAgent>,IBasicActiveAction<TAgent> - Documented in Actions and decisions
Properties
| Member | What it is |
|---|---|
IAction Action { get; } | The action this was started from. |
float EditorDuration { get; } | The duration set for the action, including the agent's base action duration. For display. |
IAgent GeneralTopic { get; } | The agent running the action. |
bool IsFinished { get; } | True once the action has finished or been cancelled. |
Events
| Member | What it is |
|---|---|
event ActionFinishedHandler Cancelled | Raised when the action is cancelled. |
event ActionFinishedHandler Finished | Raised when the action completes normally. |
Methods
| Member | What it is |
|---|---|
void Cancel() | Stops the action early and raises Cancelled if it had not ended yet. |
void Update(bool hasTarget) | Called by the agent while the action runs, with whether it has a target. |
Used in
Members of other types that take, return or hold a IActiveAction:
Action<TAgent>.Start, ActionComponent.HandleUsed, ActionFinishedHandler.BeginInvoke, ActionFinishedHandler.Invoke, ActionSettingsUsedHandler.BeginInvoke, ActionSettingsUsedHandler.Invoke, ActiveAttackDirectionReact.FinishedOrCanceled, ActiveCircleReposition.FinishOrCancel, ActiveCircleTarget.Clean, ActiveCrawl.CancelAction, ActiveDelayEnterSet.OnFinished, ActiveIdle.OnFinished, ActiveJumpAt.HandleFinished, ActiveNavigation<TThis, TAgent, TSettings>.Stop, ActiveNest.HandleCancelled, ActiveRegainControl.OnFinished, ActiveSchmeecheePlant.OnFinished, ActiveThreaten.HandleCancelled, ActiveThreaten.HandleFinished, Agent.ActiveAction, Agent.ActiveActionFinished, Agent.FireChannelEvent, AgentRollUpInPlace.OnFinished, AgentRollUpInPlace.TerminateUpdate, AiHook<T>.FinishedOrCancelled, AiHook<T>.Used, AnimatedBoolAiHook.FinishedOrCancelled, AnimatedBoolAiHook.Used, AnimatedFloatAiHook.FinishedOrCancelled, AnimatedFloatAiHook.Used, AnimatedFloatTransitionAiHook.FinishedOrCancelled, AnimatedFloatTransitionAiHook.Used, AnimatedLayerAiHook.FinishedOrCancelled, AnimatedLayerAiHook.Used, AnimatedTriggerAiHook.FinishedOrCancelled, AnimatedTriggerAiHook.Trigger, AnimatedTriggerAiHook.Used, AttackDirectionReactAIHook.FinishedOrCancelled, AttackDirectionReactAIHook.Used, BasicAction<TAgent, TActive, TSettings>.Pool, BasicAction<TAgent, TActive, TSettings>.Start, EventChannelAiHook.FinishedOrCancelled, EventChannelAiHook.Used, EventChannelTimedAiHook.FinishedOrCancelled, EventChannelTimedAiHook.Used, EventChannelTimedAiHook.Delay.Cancel, EventChannelTimedAiHook.Delay.entries, EventChannelTimedAiHook.Delay.Start, FixedStatChangeHook.AffectOnEnd, FixedStatChangeHook.AffectOnStart, IAction<TAgent>.Start, IActionSettings.HandleUsed, IAgent.ActiveAction, IAgent.FireChannelEvent, ProgressStatChangeHook.AffectOnEnd, ProgressStatChangeHook.AffectOnStart, StatChangeHook.AffectOnEnd, StatChangeHook.AffectOnStart, StatChangeHook.FinishedOrCancelled, StatChangeHook.Used and 2 more.