Class PathfinderUtil.PositionMap<N extends PathfinderUtil.PathNode>
java.lang.Object
de.tomatengames.util.PathfinderUtil.PositionMap<N>
- Type Parameters:
N- The specific type ofPathfinderUtil.PathNodeused
- Enclosing class:
PathfinderUtil
A Map-like structure specifically for
PathfinderUtil.PathNodes.
They are compared using PathfinderUtil.World.positionHash(PathNode) and PathfinderUtil.World.positionEqual(PathNode, PathNode).
Rather than wrapping with additional objects, the contained PathfinderUtil.PathNodes are used for linking directly,
meaning that a PathfinderUtil.PathNode must not be used in multiple PathfinderUtil.PositionMaps.- Since:
- 1.5
-
Constructor Summary
ConstructorsConstructorDescriptionPositionMap(PathfinderUtil.World<N> world, float loadfactor, int initialCapacity) -
Method Summary
-
Constructor Details
-
PositionMap
-
-
Method Details
-
size
public int size() -
forEach
-
clear
public void clear() -
put
-
get
-