Class ShootMultipleTask

All Implemented Interfaces:
PriorityTask, Task

public class ShootMultipleTask extends ShootTask
  • Constructor Details

    • ShootMultipleTask

      public ShootMultipleTask(ArrayList<Entity> targets, float viewDistance)
  • Method Details

    • start

      public void start()
      Description copied from interface: Task
      Start running this task. This will usually be called by an AI controller.
      Specified by:
      start in interface Task
      Overrides:
      start in class ShootTask
    • addTarget

      public void addTarget(Entity target)
      Adds a target to the target list
      Parameters:
      target - target to add
    • 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 ShootTask
    • isTargetVisible

      protected boolean isTargetVisible()
      Overrides:
      isTargetVisible in class ShootTask