Package net.citizensnpcs.api.astar
Interface AStarStorage
- All Known Implementing Classes:
- SimpleAStarStorage
public interface AStarStorage
The storage for an 
AStarMachine. Controls the open and closed sets.- 
Method SummaryModifier and TypeMethodDescriptionvoidClose a givenAStarNode, moving it from the open set to the closed set.voidClose a givenAStarNode, moving or adding it from the frontier to the open set.Returns the best node from the frontier and removes it.booleanshouldExamine(AStarNode neighbour) Returns whether to examine a givenAStarNode.
- 
Method Details- 
closeClose a givenAStarNode, moving it from the open set to the closed set.
- 
getBestNodeAStarNode getBestNode()- Returns:
- The AStarNodeto examine next from the frontier
 
- 
openClose a givenAStarNode, moving or adding it from the frontier to the open set.
- 
removeBestNodeAStarNode removeBestNode()Returns the best node from the frontier and removes it.- Returns:
- The AStarNodeto examine next from the frontier
 
- 
shouldExamineReturns whether to examine a givenAStarNode.
 
-