Package net.citizensnpcs.api.astar
Interface AStarGoal<T extends AStarNode>
- All Known Implementing Classes:
- VectorGoal
public interface AStarGoal<T extends AStarNode>
- 
Method SummaryModifier 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- 
gReturns the cost of moving between the two suppliedAStarNodes.- Parameters:
- from- The node to start from
- to- The end node
- Returns:
- The cost
 
- 
getInitialCostReturns the initial cost value when starting from the suppliedAStarNode. This represents an initial estimate for reaching the goal state from the start node.- Parameters:
- node- The start node
- Returns:
- The initial cost
 
- 
hReturns the estimated heuristic cost of traversing from the suppliedAStarNodeto the goal.- Parameters:
- from- The start node
- Returns:
- The heuristic cost
 
- 
isFinishedReturns 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
 
 
-