Class LocalPath<T extends Locatable>

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

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

      Constructors 
      Constructor Description
      LocalPath()  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      T closest()
      T closest​(Tile tile)
      T next()
      gets the next Tile within distance of 13
      T next​(int skip)
      Gets the next Tile of distance skip
      void reverse()
      Reverses 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

        forEach
      • Methods inherited from interface java.util.List

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

      • LocalPath

        public LocalPath()
    • Method Detail

      • walk

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

        public T next()
        gets the next Tile within distance of 13
        Specified by:
        next in class AbstractPath<T extends Locatable>
        Returns:
        T
      • next

        public T next​(int skip)
        Gets the next Tile of distance skip
        Parameters:
        skip - Integer value of the distance between you and the next tile
        Returns:
        T
      • closest

        public T closest()
      • closest

        public T closest​(Tile tile)