Class LocalPath<T extends Locatable>
- java.lang.Object
-
- java.util.AbstractCollection<E>
-
- java.util.AbstractList<E>
-
- org.dreambot.api.methods.walking.path.AbstractPath<T>
-
- org.dreambot.api.methods.walking.path.impl.LocalPath<T>
-
- 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 Static Methods Instance Methods Concrete Methods Modifier and Type Method Description Tclosest()Returns the closest point in the path to the playerTclosest(Tile tile)Returns the closest point in the path to the given tileTgetFurthestOnMM()static LocalPath<? extends Locatable>getLastWalkedPath()Tnext()gets the next Tile within distance of 13Tnext(int skip)Gets the next Tile of distance skipvoidreverse()Reverses the pathbooleanwalk()Walks the next point in the path-
Methods inherited from class org.dreambot.api.methods.walking.path.AbstractPath
add, addAll, addAll, addToFront, clear, direction, first, get, getObstacleForTile, indexOf, isObstacleTile, iterator, last, listIterator, obstacles, path, remove, setDirection, size
-
Methods inherited from class java.util.AbstractList
add, addAll, equals, hashCode, lastIndexOf, listIterator, remove, set, subList
-
-
-
-
Method Detail
-
walk
public boolean walk()
Walks the next point in the path- Specified by:
walkin classAbstractPath<T extends Locatable>- Returns:
- True if walked, else false
-
next
public T next()
gets the next Tile within distance of 13- Specified by:
nextin classAbstractPath<T extends Locatable>- Returns:
- T
-
getFurthestOnMM
public T getFurthestOnMM()
-
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()
Returns the closest point in the path to the player
-
reverse
public void reverse()
Description copied from class:AbstractPathReverses the path- Overrides:
reversein classAbstractPath<T extends Locatable>
-
-