public class HashedInfiniteMapEightNeighbours<T extends AStarNodeBase<T>> extends HashedInfiniteMap<T>
blockedMap, nodePool
objectPool
Constructor and Description |
---|
HashedInfiniteMapEightNeighbours(ObjectPool<T> nodePool) |
Modifier and Type | Method and Description |
---|---|
AStarMapBase<T> |
clone() |
void |
visitNeighboursOf(T origin,
AStarMapVisitorBase<T> visitor)
Lets the provided visitor visit all non-blocked neighbours of a given node.
|
clearMapKeepBlocks, getMaxXNodes, getMaxYNodes, getMaxZNodes, isTileBlocked, nodeAt, setTileBlocked
setObjectPool, tryInsertPath, visitIfNotBlocked, visitNeighboursOf4, visitNeighboursOf8
public HashedInfiniteMapEightNeighbours(ObjectPool<T> nodePool)
nodePool
- public void visitNeighboursOf(T origin, AStarMapVisitorBase<T> visitor)
AStarMapBase
visitNeighboursOf
in class HashedInfiniteMap<T extends AStarNodeBase<T>>
origin
- Node whose neighbours shall be visited.visitor
- Visitor to use.public AStarMapBase<T> clone()
clone
in class HashedInfiniteMap<T extends AStarNodeBase<T>>