Drafted Vision blocking functionality and respective MapRef->HelperFunctions

This commit is contained in:
2022-06-18 01:17:26 +02:00
parent 18af6a56be
commit db89c0b8e6
4 changed files with 63 additions and 13 deletions
+8 -3
View File
@@ -80,11 +80,16 @@ public:
UFUNCTION(BlueprintCallable, Category = "Utility")
bool DiagIsReachable(AHexTile* InStart, FHexVector InDiagUnitVec);
UFUNCTION(BlueprintCallable, Category = "Runtime")
UFUNCTION(BlueprintCallable, Category = "Utility")
float LerpAxial(int32 a, int32 b, int32 t);
UFUNCTION(BlueprintCallable, Category = "Utility")
FHexVector AxialRound(float q, float r)
UFUNCTION(BlueprintCallable, Category = "Utility")
TArray<AHexTile*> Neighbors(AHexTile* OfHex, bool bFreeOnly);
UFUNCTION(BlueprintCallable, Category = "Runtime")
UFUNCTION(BlueprintCallable, Category = "Utility")
TArray<AHexTile*> FreeDiagonals(AHexTile* OfHex);
UFUNCTION(BlueprintCallable, Category = "Runtime")
UFUNCTION(BlueprintCallable, Category = "Utility")
TSet<AHexTile*> BreadthFirstSearch(AHexTile* Start, int32 Radius);
UFUNCTION(BlueprintCallable, Category = "Runtime")
TArray<AHexTile*> FindPathAStar(AHexTile* Start, AHexTile* Goal, bool bDiags);