MovementArrow functionality; StarFog implemented; Refactoring
This commit is contained in:
@@ -1,5 +1,3 @@
|
||||
// Fill out your copyright notice in the Description page of Project Settings.
|
||||
|
||||
#pragma once
|
||||
|
||||
#include "CoreMinimal.h"
|
||||
@@ -12,6 +10,8 @@ class AHexTile;
|
||||
class AAdventureCameraPawn;
|
||||
class AAdventureCharacter;
|
||||
class AMapObject;
|
||||
class AMovementArrow;
|
||||
|
||||
/**
|
||||
*
|
||||
*/
|
||||
@@ -32,19 +32,34 @@ public:
|
||||
AAdventureCameraPawn* CamRef;
|
||||
UPROPERTY(VisibleAnywhere, BlueprintReadWrite)
|
||||
AHexTile* SpawnHex;
|
||||
|
||||
|
||||
UPROPERTY(VisibleAnywhere, BlueprintReadWrite, Category = "Runtime")
|
||||
AHexTile* CurrentHex;
|
||||
|
||||
|
||||
UPROPERTY(BlueprintReadWrite, EditAnywhere)
|
||||
AHexTile* HoveredHex;
|
||||
UFUNCTION(BlueprintCallable)
|
||||
void LeftClick();
|
||||
|
||||
UPROPERTY(EditAnywhere, BlueprintReadWrite)
|
||||
TSet<AHexTile*> ExploredHexes;
|
||||
|
||||
UPROPERTY(BlueprintReadOnly, EditDefaultsOnly)
|
||||
TSubclassOf<AMovementArrow> MoveArrowClass;
|
||||
UFUNCTION(BlueprintCallable)
|
||||
void MarkPath(TArray<AHexTile*> Path);
|
||||
UPROPERTY(BlueprintReadWrite, VisibleAnywhere)
|
||||
TArray<AMovementArrow*> PathArrows;
|
||||
UFUNCTION(BlueprintCallable)
|
||||
void ClearPath();
|
||||
|
||||
|
||||
UPROPERTY(EditAnywhere, BlueprintReadWrite)
|
||||
int32 VisionRadius = 6;
|
||||
UFUNCTION(BlueprintCallable)
|
||||
TArray<AHexTile*> Vision(int32 Radius);
|
||||
UPROPERTY(EditAnywhere, BlueprintReadWrite)
|
||||
TSet<AHexTile*> ExploredHexes;
|
||||
|
||||
protected:
|
||||
virtual void BeginPlay() override;
|
||||
@@ -60,7 +75,9 @@ public:
|
||||
UPROPERTY(BlueprintReadWrite, VisibleAnywhere)
|
||||
AMapObject* PlaceObj;
|
||||
UFUNCTION(BlueprintCallable)
|
||||
void TogglePlacing();
|
||||
void EnablePlacing();
|
||||
UFUNCTION(BlueprintCallable)
|
||||
void DisablePlacing();
|
||||
UFUNCTION(BlueprintCallable)
|
||||
void FitOnGrid(AMapObject* MapObject);
|
||||
UFUNCTION()
|
||||
|
||||
Reference in New Issue
Block a user