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 -7
View File
@@ -20,14 +20,10 @@ public:
// Sets default values for this character's properties
AAdventureCharacter();
UPROPERTY(VisibleInstanceOnly, BlueprintReadWrite, Category = "Runtime")
AHexTile* GridLocation;
UPROPERTY(VisibleInstanceOnly, BlueprintReadWrite, Category = "Runtime")
AHexTile* SelectedHex;
UPROPERTY(VisibleAnywhere, BlueprintReadWrite, Category = "Runtime")
TArray<AHexTile*> MovementPath;
UFUNCTION(BlueprintCallable)
void AStarFindPath(AHexTile* Goal);
AHexTile* GridLocation;
UPROPERTY(VisibleAnywhere, BlueprintReadWrite, Category = "Runtime")
AHexTile* SelectedHex;
protected:
// Called when the game starts or when spawned