Class Task

java.lang.Object
com.ardorcraft.util.queue.Task
All Implemented Interfaces:
Comparable<Task>

public abstract class Task extends Object implements Comparable<Task>
A prioritized Task for the Worker. Sorted based on bucket, distance and time.
  • Constructor Details

    • Task

      public Task(int bucket, int x, int z)
  • Method Details

    • execute

      public abstract void execute(Renderer renderer)
    • compareToTest

      public int compareToTest(Task o2)
    • compareTo

      public int compareTo(Task o2)
      Specified by:
      compareTo in interface Comparable<Task>
    • setPlayerCoords

      public void setPlayerCoords(Coords playerCoords)
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • equals

      public boolean equals(Object obj)
      Overrides:
      equals in class Object
    • getBucket

      public int getBucket()