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 Summary
Modifier 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
-
close
Close a givenAStarNode, moving it from the open set to the closed set. -
getBestNode
AStarNode getBestNode()- Returns:
- The
AStarNodeto examine next from the frontier
-
open
Close a givenAStarNode, moving or adding it from the frontier to the open set. -
removeBestNode
AStarNode removeBestNode()Returns the best node from the frontier and removes it.- Returns:
- The
AStarNodeto examine next from the frontier
-
shouldExamine
Returns whether to examine a givenAStarNode.
-