Interface AStarStorage

All Known Implementing Classes:
SimpleAStarStorage

public interface AStarStorage
The storage for an AStarMachine. Controls the open and closed sets.
  • Method Details

    • close

      void close(AStarNode node)
      Close a given AStarNode, moving it from the open set to the closed set.
    • getBestNode

      AStarNode getBestNode()
      Returns:
      The AStarNode to examine next from the frontier
    • open

      void open(AStarNode node)
      Close a given AStarNode, 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

      boolean shouldExamine(AStarNode neighbour)
      Returns whether to examine a given AStarNode.