Interface PathPoint
- All Known Implementing Classes:
VectorNode
public interface PathPoint
-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptionvoidaddCallback(PathPoint.PathCallback callback) Adds a path callback that will be executed if this path point is executed.default PathPointcreateAtOffset(Vector vector) Returns a new PathPoint at a given Vector.default PathPointcreateAtOffset(Vector vector, float fixedCost) Returns a new PathPoint at a given Vector.createChild(int x, int y, int z) Returns a new PathPoint at a given point.createChild(int x, int y, int z, float fixedCost) Returns a new PathPoint at a given point.getGoal()Gets the destination VectorGets the parent PathPointGets the list of manual path vectorsGets the vector represented by this pointvoidsetPathVectors(List<Vector> vectors) Sets the path vectors that will be used at pathfinding time.voidSets the vector location of this point
-
Method Details
-
addCallback
Adds a path callback that will be executed if this path point is executed. -
createAtOffset
Returns a new PathPoint at a given Vector. -
createAtOffset
Returns a new PathPoint at a given Vector. -
createChild
Returns a new PathPoint at a given point. -
createChild
Returns a new PathPoint at a given point. -
getGoal
Vector getGoal()Gets the destination Vector -
getParentPoint
PathPoint getParentPoint()Gets the parent PathPoint -
getPathVectors
Gets the list of manual path vectors- See Also:
-
getVector
Vector getVector()Gets the vector represented by this point -
setPathVectors
Sets the path vectors that will be used at pathfinding time. For example, setting a list of vectors to path through in order to reach this pathpoint. -
setVector
Sets the vector location of this point
-