Class Path
java.lang.Object
com.zenith.feature.pathfinder.calc.PathBase
com.zenith.feature.pathfinder.calc.Path
- All Implemented Interfaces:
IPath
-
Method Summary
Modifier and TypeMethodDescriptiongetDest()Returns the end position of this path.getGoal()intReturns the number of nodes that were considered during calculation before this path was found.getSrc()Returns the start position of this path.Ordered list of movements to carry out.All positions along the way.This path is actually going to be executed in the world.Methods inherited from class com.zenith.feature.pathfinder.calc.PathBase
cutoffAtLoadedChunks, staticCutoffMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.zenith.feature.pathfinder.calc.IPath
length, sanityCheck, ticksRemainingFrom
-
Method Details
-
getGoal
- Returns:
- The goal that this path was calculated towards
-
postProcess
-
movements
Description copied from interface:IPathOrdered list of movements to carry out. movements.get(i).getSrc() should equal positions.get(i) movements.get(i).getDest() should equal positions.get(i+1) movements.size() should equal positions.size()-1- Returns:
- All of the movements to carry out
-
positions
-
getNumNodesConsidered
public int getNumNodesConsidered()Description copied from interface:IPathReturns the number of nodes that were considered during calculation before this path was found.- Returns:
- The number of nodes that were considered before finding this path
-
getSrc
Description copied from interface:IPathReturns the start position of this path. This is the first element in theListthat is returned byIPath.positions().- Returns:
- The start position of this path
-
getDest
Description copied from interface:IPathReturns the end position of this path. This is the last element in theListthat is returned byIPath.positions().- Returns:
- The end position of this path.
-