Fixed vision blocking; MapObject::Occupy() now blueprint implementable

This commit is contained in:
2022-06-20 15:45:30 +02:00
parent 068beeacfd
commit 276f8e2b50
7 changed files with 25 additions and 24 deletions
+2 -5
View File
@@ -8,7 +8,7 @@
#include "Kismet/GameplayStatics.h"
#include "Algo/Reverse.h"
#include "Util/IndexPriorityQueue.h"
#include <cmath.h>
#include <tgmath.h>
// Sets default values
AAdventureMap::AAdventureMap()
@@ -106,13 +106,10 @@ FHexVector AAdventureMap::AxialRound(float qf, float rf)
return FHexVector(q, r);
}
float AAdventureMap::Lerp(int32 a, int32 b, int32 t)
float AAdventureMap::Lerp(int32 a, int32 b, float t)
{
return float(a + (b - a) * t);
}
// FHexVector SampleHex = MapRef->AxialRound(Lerpl(a, b, t), Lerp(x, y, z));
//
TArray<AHexTile*> AAdventureMap::Neighbors(AHexTile* OfHex, bool bFreeOnly = false)
{