Class LocalPath<T extends Locatable>
java.lang.Object
java.util.AbstractCollection<E>
java.util.AbstractList<E>
org.highlife.api.methods.walking.path.AbstractPath<T>
org.highlife.api.methods.walking.path.impl.LocalPath<T>
- All Implemented Interfaces:
Iterable<T>,Collection<T>,List<T>
-
Field Summary
Fields inherited from class java.util.AbstractList
modCount -
Constructor Summary
Constructors -
Method Summary
Methods inherited from class org.highlife.api.methods.walking.path.AbstractPath
add, addAll, addAll, addToFront, clear, direction, first, get, getObstacleForTile, indexOf, isObstacleTile, iterator, last, listIterator, obstacles, path, remove, setDirection, sizeMethods inherited from class java.util.AbstractList
add, addAll, equals, hashCode, lastIndexOf, listIterator, remove, removeRange, set, subListMethods inherited from class java.util.AbstractCollection
contains, containsAll, isEmpty, removeAll, retainAll, toArray, toArray, toStringMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface java.util.Collection
parallelStream, removeIf, stream, toArrayMethods inherited from interface java.util.List
contains, containsAll, isEmpty, removeAll, replaceAll, retainAll, sort, spliterator, toArray, toArray
-
Constructor Details
-
LocalPath
public LocalPath()
-
-
Method Details
-
walk
public boolean walk()- Specified by:
walkin classAbstractPath<T extends Locatable>
-
next
- Specified by:
nextin classAbstractPath<T extends Locatable>
-
getFurthestOnMM
-
next
-
closest
-
closest
-
reverse
public void reverse()- Overrides:
reversein classAbstractPath<T extends Locatable>
-
getLastWalkedPath
-