Class PfNode
- java.lang.Object
-
- com.bombinggames.wurfelengine.core.map.Coordinate
-
- com.bombinggames.wurfelengine.core.map.PfNode
-
- All Implemented Interfaces:
com.badlogic.gdx.ai.pfa.indexed.IndexedNode<PfNode>
,Position
,java.io.Serializable
public class PfNode extends Coordinate implements com.badlogic.gdx.ai.pfa.indexed.IndexedNode<PfNode>
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description PfNode(Coordinate coord)
PfNode(Coordinate coord, int index)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
calculateIndex()
com.badlogic.gdx.utils.Array<com.badlogic.gdx.ai.pfa.Connection<PfNode>>
getConnections()
int
getIndex()
-
Methods inherited from class com.bombinggames.wurfelengine.core.map.Coordinate
add, add, add, addLight, addLightToBackEdge, cpy, damage, destroy, distanceTo, distanceTo, distanceToHorizontal, distanceToHorizontal, distanceToHorizontalSquared, distanceToHorizontalSquared, distanceToSquared, distanceToSquared, equals, getBlock, getBlockId, getBlockValue, getChunk, getChunkX, getChunkY, getCoord, getEntitiesInside, getEntitiesInside, getEntitiesNearby, getEntitiesNearbyHorizontal, getEntitiesNearbyHorizontal, getLogic, getNeighbourSide, getPoint, getProjectionSpaceX, getProjectionSpaceY, getRenderCell, getRenderChunk, getShared, getViewSpcX, getViewSpcY, getX, getY, getZ, getZClamp, getZGrid, getZPoint, goToNeighbour, hashCode, isInCube, isInMemoryAreaXY, isInMemoryAreaXYZ, isObstacle, set, set, setBlock, setBlock, setFromPoint, setValue, setX, setY, setZ, toCoord, toPoint, toString
-
-
-
-
Constructor Detail
-
PfNode
public PfNode(Coordinate coord, int index)
- Parameters:
coord
-index
-
-
PfNode
public PfNode(Coordinate coord)
- Parameters:
coord
-
-
-
Method Detail
-
calculateIndex
public int calculateIndex()
- Returns:
-
getIndex
public int getIndex()
- Specified by:
getIndex
in interfacecom.badlogic.gdx.ai.pfa.indexed.IndexedNode<PfNode>
-
-