Class GlobalPath<T extends AbstractWebNode>

  • All Implemented Interfaces:
    java.lang.Iterable<T>, java.util.Collection<T>, java.util.List<T>

    public class GlobalPath<T extends AbstractWebNode>
    extends AbstractPath<T>
    Created with IntelliJ IDEA.
    : 1/10/2015 Time : 10:55 PM
    • Constructor Summary

      Constructor Description
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      T closest()
      Gets the closest node to your player
      T closest​(Tile tile)
      Gets the closest node to specified tile
      boolean hasSpecialNode()  
      T next()
      Gets the next node in the path
      boolean walk()
      Walks the next point in the path
      • Methods inherited from class java.util.AbstractList

        add, addAll, equals, hashCode, lastIndexOf, listIterator, remove, set, subList
      • Methods inherited from class java.util.AbstractCollection

        contains, containsAll, isEmpty, removeAll, retainAll, toArray, toArray, toString
      • Methods inherited from class java.lang.Object

        getClass, notify, notifyAll, wait, wait, wait
      • Methods inherited from interface java.util.Collection

        parallelStream, removeIf, stream, toArray
      • Methods inherited from interface java.lang.Iterable

      • Methods inherited from interface java.util.List

        contains, containsAll, isEmpty, removeAll, replaceAll, retainAll, sort, spliterator, toArray, toArray
    • Constructor Detail

      • GlobalPath

        public GlobalPath()
    • Method Detail

      • walk

        public boolean walk()
        Walks the next point in the path
        Specified by:
        walk in class AbstractPath<T extends AbstractWebNode>
        True if walked, else false
      • hasSpecialNode

        public boolean hasSpecialNode()
      • closest

        public T closest()
        Gets the closest node to your player
      • closest

        public T closest​(Tile tile)
        Gets the closest node to specified tile
        tile - Tile to find node near