Contents
- Description
- Field Summary
- Constructor Summary
- Method Summary
- Field Details
- Constructor Details
- Method Details
- getPositionIndex()
- getSuccessors()
- getSuccessor(int)
- setSuccessor(int, AStarNode, int, float)
- getPredecessor()
- getNextPathNode()
- setNextNode(AStarNode, int)
- getTravelCost()
- getEstimateToGoal()
- getTotalCost()
- getPredecessorDirection()
- close()
- isOpen()
- isInvalid()
- getLength()
- next()
- getPosition()
- advance(int)
- initAsStartNode(Vector3d, long, float, float)
- initWithPredecessor(AStarNode, int, Vector3d, long, int, float, float)
- initAsInvalid(Vector3d, long)
- adjustOptimalPath(AStarNode, float, int)
- toString()
Class AStarNode
java.lang.Object
com.hypixel.hytale.server.npc.navigation.AStarNode
- All Implemented Interfaces:
IWaypoint
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidadjustOptimalPath(AStarNode parentNode, float deltaCost, int direction) advance(int skip) voidclose()floatintorg.joml.Vector3dlongintgetSuccessor(int index) floatfloatinitAsInvalid(org.joml.Vector3d position, long positionIndex) initAsStartNode(org.joml.Vector3d position, long positionIndex, float cost, float estimateCost) initWithPredecessor(AStarNode predecessor, int directionIndex, org.joml.Vector3d position, long positionIndex, int inverseDirectionIndex, float travelCost, float estimateCost) booleanbooleanisOpen()next()voidsetNextNode(AStarNode next, int length) voidsetSuccessor(int directionIndex, AStarNode node, int inverseDirectionIndex, float cost) toString()
-
Field Details
-
ENTRY_NODE_TAG
-
-
Constructor Details
-
AStarNode
public AStarNode(int numDirections)
-
-
Method Details
-
getPositionIndex
public long getPositionIndex() -
getSuccessors
-
getSuccessor
-
getPredecessor
-
getNextPathNode
-
getTravelCost
public float getTravelCost() -
getEstimateToGoal
public float getEstimateToGoal() -
getTotalCost
public float getTotalCost() -
getPredecessorDirection
public int getPredecessorDirection() -
close
public void close() -
isOpen
public boolean isOpen() -
isInvalid
public boolean isInvalid() -
getLength
-
next
-
getPosition
@Nonnull public org.joml.Vector3d getPosition()- Specified by:
getPositionin interfaceIWaypoint
-
advance
-
initAsStartNode
@Nonnull public AStarNode initAsStartNode(@Nonnull org.joml.Vector3d position, long positionIndex, float cost, float estimateCost) -
initAsInvalid
-
toString
-