Class GlobalPath<T extends AbstractWebNode>
- 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.GlobalPath<T>
-
- 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.- Since:
- : 1/10/2015 Time : 10:55 PM
-
-
Constructor Summary
Constructors Constructor Description GlobalPath()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description T
closest()
Gets the closest node to your playerT
closest(Tile tile)
Gets the closest node to specified tileint
getFinalCost()
static GlobalPath<? extends AbstractWebNode>
getLastWalkedPath()
boolean
hasSpecialNode()
T
next()
Gets the next node in the pathvoid
setFinalCost(int finalCost)
boolean
walk()
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, reverse, 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:
walk
in classAbstractPath<T extends AbstractWebNode>
- Returns:
- True if walked, else false
-
hasSpecialNode
public boolean hasSpecialNode()
-
next
public T next()
Gets the next node in the path- Specified by:
next
in classAbstractPath<T extends AbstractWebNode>
- Returns:
- E
-
closest
public T closest()
Gets the closest node to your player- Returns:
- T
-
closest
public T closest(Tile tile)
Gets the closest node to specified tile- Parameters:
tile
- Tile to find node near- Returns:
- T
-
getLastWalkedPath
public static GlobalPath<? extends AbstractWebNode> getLastWalkedPath()
-
getFinalCost
public int getFinalCost()
-
setFinalCost
public void setFinalCost(int finalCost)
-
-