Class ActionWithDelay

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

public abstract class ActionWithDelay extends ActionBase
  • Field Details

    • delayRange

      private final double[] delayRange
    • delay

      private double delay
    • isDelaying

      private boolean isDelaying
  • Constructor Details

  • Method Details

    • processDelay

      public boolean processDelay(float dt)
      Specified by:
      processDelay in interface IComponentExecutionControl
      Overrides:
      processDelay in class ActionBase
    • isDelaying

      protected boolean isDelaying()
    • isDelayPrepared

      protected boolean isDelayPrepared()
    • prepareDelay

      protected void prepareDelay()
    • clearDelay

      protected void clearDelay()
    • startDelay

      protected void startDelay(@Nonnull EntitySupport support)