Class WanderIdleTask

All Implemented Interfaces:
Task

public class WanderIdleTask extends WaitTask
A Priority task which listens to stun events and forces the ai to sleep for a duration
  • Constructor Details

    • WanderIdleTask

      public WanderIdleTask(float duration)
      Parameters:
      duration - How long to wait for, in seconds.
  • Method Details

    • start

      public void start()
      Description copied from class: WaitTask
      Start waiting from now until duration has passed.
      Specified by:
      start in interface Task
      Overrides:
      start in class WaitTask