public interface AStarClosedListBase<T extends AStarNodeBase<T>>
Modifier and Type | Method and Description |
---|---|
void |
addNodeToClosedList(T node)
Marks a node as been visited and expanded, which means that his neighbour
nodes have been added to the open list.
|
void |
clearClosedList()
Removes all nodes from the closed list.
|
T |
findClosedNode(int x,
int y,
int z)
If this position has already been visited by the A* search, and its nodes
neighbours have been added to the open list, this method returns the node
associated with the given position.
|
void |
removeNodeFromClosedList(T node)
If contained in the list of visited and expanded nodes, the given node is
removed.
|
void addNodeToClosedList(T node)
node
- The node to add.void removeNodeFromClosedList(T node)
node
- The node to be removed.T findClosedNode(int x, int y, int z)
x
- X-position of the map to be checked.y
- Y-position of the map to be checked.z
- Z-position of the map to be checked.null
otherwise.void clearClosedList()