plan to implement pathfinding; minor fixes & refactorings

This commit is contained in:
2022-01-12 18:22:16 +01:00
parent 9021763ab7
commit b5c9c661fe
6 changed files with 56 additions and 28 deletions
+4 -1
View File
@@ -28,7 +28,7 @@ public:
UFUNCTION(BlueprintCallable)
FVector Corner(int32 i);
UPROPERTY(VisibleAnywhere, BlueprintReadOnly, Category = "Runtime")
UPROPERTY(VisibleAnywhere, BlueprintReadOnly, Category = "debug")
TArray<FVector> Corners;
UFUNCTION()
void FillCornersArray();
@@ -40,6 +40,9 @@ public:
UPROPERTY(VisibleAnywhere, BlueprintReadOnly, Category = "Runtime")
int32 Index;
UFUNCTION(BlueprintCallable)
TArray<AHexTile*> Neighbors(AHexTile* OfHexTile);
protected:
// Called when the game starts or when spawned
virtual void BeginPlay() override;