Class HumanWaitTask

java.lang.Object
com.csse3200.game.ai.tasks.DefaultTask
com.csse3200.game.components.tasks.human.HumanWaitTask
All Implemented Interfaces:
Task

public class HumanWaitTask extends DefaultTask
Task that does nothing other than waiting for a given time. Status is Finished after the time has passed.
  • Constructor Details

    • HumanWaitTask

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

    • start

      public void start()
      Start waiting from now until duration has passed.
      Specified by:
      start in interface Task
      Overrides:
      start in class DefaultTask
    • update

      public void update()
      Description copied from interface: Task
      Run one frame of the task. Similar to the update() in Components.
      Specified by:
      update in interface Task
      Overrides:
      update in class DefaultTask