First draft of A* pathfinding implementation

This commit is contained in:
2022-01-16 18:33:43 +01:00
parent fc10cbfc3e
commit 180207f441
5 changed files with 114 additions and 53 deletions
+3 -1
View File
@@ -40,6 +40,8 @@ public:
AHexTile* RandomHex();
UFUNCTION(BlueprintCallable, Category = "Runtime")
TArray<AHexTile*> Neighbors(AHexTile* OfHex);
UFUNCTION(BlueprintCallable, Category = "Runtime")
TArray<AHexTile*> FindPathAStar(AHexTile* Start, AHexTile* Goal);
// Player spawn section
UPROPERTY(VisibleAnywhere, BlueprintReadWrite)
@@ -50,4 +52,4 @@ public:
protected:
// Called when the game starts or when spawned
virtual void BeginPlay() override;
};
};