Camera now following Pawn
This commit is contained in:
@@ -45,6 +45,18 @@ void AAdventurePlayerController::LeftClick()
|
||||
if (bInPlacementMode) { PlaceObject(PlaceObjClass, HoveredHex); }
|
||||
}
|
||||
|
||||
TArray<AHexTile*> AAdventurePlayerController::Vision()
|
||||
{
|
||||
TArray<AHexTile*> Results;
|
||||
TArray<AHexTile*> Visible = MapRef->BreadthFirstSearch(CurrentHex, 7);
|
||||
for (auto& Hex : Visible) {
|
||||
if (ExploredHexes.Contains(Hex)) { continue; }
|
||||
Results.Add(Hex);
|
||||
ExploredHexes.Add(Hex);
|
||||
}
|
||||
return Results;
|
||||
}
|
||||
|
||||
void AAdventurePlayerController::TogglePlacing()
|
||||
{
|
||||
bInPlacementMode = !bInPlacementMode;
|
||||
|
||||
Reference in New Issue
Block a user