public interface AStarStorage
AStarMachine
. Controls the open and closed sets.Modifier and Type | Method and Description |
---|---|
void |
close(AStarNode node)
Close a given
AStarNode , moving it from the open set to the closed set. |
AStarNode |
getBestNode() |
void |
open(AStarNode node)
Close a given
AStarNode , moving or adding it from the frontier to the open set. |
AStarNode |
removeBestNode()
Returns the best node from the frontier and removes it.
|
boolean |
shouldExamine(AStarNode neighbour)
Returns whether to examine a given
AStarNode . |
void close(AStarNode node)
AStarNode
, moving it from the open set to the closed set.void open(AStarNode node)
AStarNode
, moving or adding it from the frontier to the open set.AStarNode removeBestNode()
AStarNode
to examine next from the frontierCopyright © 2021. All rights reserved.