Interface AStarGoal<T extends AStarNode>
- All Known Implementing Classes:
VectorGoal
public interface AStarGoal<T extends AStarNode>
-
Method Summary
Modifier and TypeMethodDescriptionfloatReturns the cost of moving between the two suppliedAStarNodes.floatgetInitialCost(T node) Returns the initial cost value when starting from the suppliedAStarNode.floatReturns the estimated heuristic cost of traversing from the suppliedAStarNodeto the goal.booleanisFinished(T node) Returns whether the suppliedAStarNoderepresents the goal state for thisAStarGoal.
-
Method Details
-
g
-
getInitialCost
-
h
-
isFinished
Returns whether the suppliedAStarNoderepresents the goal state for thisAStarGoal. This will halt execution of the callingAStarMachine.- Parameters:
node- The node to check- Returns:
- Whether the node is the goal state
-