Class DeadTask

java.lang.Object
com.deco2800.game.ai.tasks.DefaultTask
com.deco2800.game.components.tasks.DeadTask
All Implemented Interfaces:
PriorityTask, Task

public class DeadTask extends DefaultTask implements PriorityTask
  • Constructor Details

    • DeadTask

      public DeadTask(Entity target, int priority)
      Create DeadTask
      Parameters:
      target - the target of this entity
      priority - the priority of this task
  • Method Details

    • start

      public void start()
      Start this task
      Specified by:
      start in interface Task
      Overrides:
      start in class DefaultTask
    • update

      public void update()
      Update this task
      Specified by:
      update in interface Task
      Overrides:
      update in class DefaultTask
    • getPriority

      public int getPriority()
      Get the priority of this task
      Specified by:
      getPriority in interface PriorityTask
      Returns:
      the priority of this task