Big rework to A*; factored out path linking

This commit is contained in:
2022-01-18 20:09:37 +01:00
parent 80e990c432
commit 239054df49
4 changed files with 66 additions and 70 deletions
+7 -3
View File
@@ -43,9 +43,13 @@ public:
UFUNCTION(BlueprintCallable, Category = "Runtime")
TArray<AHexTile*> Neighbors(AHexTile* OfHex);
UFUNCTION(BlueprintCallable, Category = "Runtime")
TArray<AHexTile*> FindPathAStar(AHexTile* Start, AHexTile* Goal);
//UFUNCTION(BlueprintCallable, Category = "Runtime")
// TArray<AHexTile*> FindPathAStarPQ(AHexTile* Start, AHexTile* Goal);
TArray<AHexTile*> AStar(AHexTile* Start, AHexTile* Goal);
UFUNCTION(BlueprintCallable, Category = "Runtime")
TArray<AHexTile*> LinkPath(AHexTile* Start, AHexTile* Goal);
UPROPERTY(BlueprintReadOnly, Category = "debug")
bool bChainBroken;
// Player spawn section
UPROPERTY(VisibleAnywhere, BlueprintReadWrite)