Class PathNode
java.lang.Object
com.zenith.feature.pathfinder.calc.PathNode
-
Field Summary
FieldsModifier and TypeFieldDescriptionfloatTotal cost of getting from start to here Mutable and changed by PathFinderfinal floatCached, should always be equal to goal.heuristic(pos)intWhere is this node in the array flattenization of the binary heap? Needed for decrease-key operations.longThe position of this nodeIn the graph search, what previous node contributed to the cost Mutable and changed by PathFinder -
Constructor Summary
Constructors -
Method Summary
-
Field Details
-
pos
public long posThe position of this node -
estimatedCostToGoal
public final float estimatedCostToGoalCached, should always be equal to goal.heuristic(pos) -
cost
public float costTotal cost of getting from start to here Mutable and changed by PathFinder -
previous
In the graph search, what previous node contributed to the cost Mutable and changed by PathFinder -
heapPosition
public int heapPositionWhere is this node in the array flattenization of the binary heap? Needed for decrease-key operations.
-
-
Constructor Details
-
PathNode
-
-
Method Details
-
combinedCost
public float combinedCost()Should always be equal to estimatedCosttoGoal + cost Mutable and changed by PathFinder -
isOpen
public boolean isOpen() -
x
public int x() -
y
public int y() -
z
public int z() -
hashCode
-
equals
-