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 TypeMethodDescriptionvoid
Close a givenAStarNode
, moving it from the open set to the closed set.void
Close a givenAStarNode
, moving or adding it from the frontier to the open set.Returns the best node from the frontier and removes it.boolean
shouldExamine
(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
AStarNode
to 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
AStarNode
to examine next from the frontier
-
shouldExamine
Returns whether to examine a givenAStarNode
.
-