Class HPACluster
java.lang.Object
net.citizensnpcs.api.hpastar.HPACluster
-
Nested Class Summary
Nested Classes -
Constructor Summary
ConstructorsConstructorDescriptionHPACluster(HPAGraph graph, int level, int clusterSize, int clusterHeight, int clusterX, int clusterY, int clusterZ) -
Method Summary
Modifier and TypeMethodDescriptionvoidbuildFrom(List<HPACluster> clusters) voidconnect(HPACluster other, HPACluster.Direction direction) voidconnectDiagonal(HPACluster other, int dx, int dz, float weight) voidbooleancontains(HPACluster other) booleancontainsPoint(int x, int y, int z) booleanvoidinsert(HPAGraphNode node) voidremove(HPAGraphNode... nodes) toString()
-
Constructor Details
-
HPACluster
public HPACluster(HPAGraph graph, int level, int clusterSize, int clusterHeight, int clusterX, int clusterY, int clusterZ)
-
-
Method Details
-
buildFrom
-
connect
-
connectDiagonal
-
connectIntra
public void connectIntra() -
contains
-
containsPoint
public boolean containsPoint(int x, int y, int z) -
hasWalkableNodes
public boolean hasWalkableNodes() -
insert
-
remove
-
toString
-