Base functionality for MapObject placement

This commit is contained in:
2022-01-24 21:26:06 +01:00
parent 74eab48a6e
commit 237c056b30
8 changed files with 93 additions and 79 deletions
+4 -2
View File
@@ -49,8 +49,6 @@ public:
int32 MoveCost = 1;
UPROPERTY(BlueprintReadWrite, VisibleInstanceOnly, Category = "Movement")
AHexTile* CameFrom;
UPROPERTY(VisibleInstanceOnly, Category = "Movement")
int32 CostSoFar = 0;
UPROPERTY()
int32 FCost;
UPROPERTY()
@@ -58,6 +56,10 @@ public:
UPROPERTY()
int32 HCost;
// MapObject Placement
UPROPERTY(BlueprintReadWrite, VisibleAnywhere)
bool bFree = true;
FORCEINLINE bool operator == (const AHexTile &Other)
{
if (this->Q == Other.Q && this->R == Other.R) { return true; }