Class ActionWithDelay

All Implemented Interfaces:
Action, RoleStateChange, IAnnotatedComponent, IComponentExecutionControl
Direct Known Subclasses:
ActionDropItem, ActionPickUpItem, ActionTimeout

public abstract class ActionWithDelay extends ActionBase
Created on 28/04/2020
  • Constructor Details

  • Method Details

    • processDelay

      public boolean processDelay(float dt)
      Description copied from interface: IComponentExecutionControl
      Tick down the internal delay on this core component
      Specified by:
      processDelay in interface IComponentExecutionControl
      Overrides:
      processDelay in class ActionBase
      Parameters:
      dt - the tick duration
      Returns:
      whether this component has finished processing its internal delay
    • isBusy

      public boolean isBusy()
      Description copied from interface: Action
      Whether this action has work in flight that spans ticks (e.g. a deferred/delayed continuation bound to this instance). Used by ForEach's per-target instance pool to avoid recycling a slot whose action is still mid-execution. Defaults to false.