Updated TurnBaseCombat for Code Cleanup

This commit is contained in:
Philip W 2022-11-14 03:22:05 +00:00
parent 7fb9935e70
commit e5af4538ea
2 changed files with 7 additions and 7 deletions

View File

@ -177,12 +177,12 @@ void ATurnBaseCombat::BackspaceButtonOnClick()
UpdateComboString(CurrentComboString); UpdateComboString(CurrentComboString);
} }
void ATurnBaseCombat::UpdateComboString(FString NewCombo) void ATurnBaseCombat::UpdateComboString(FString NewCombo) const
{ {
CurrentComboTextBlock->SetText(FText::FromString(NewCombo)); CurrentComboTextBlock->SetText(FText::FromString(NewCombo));
} }
void ATurnBaseCombat::UpdateActionPoints() void ATurnBaseCombat::UpdateActionPoints() const
{ {
ActionPointsTextBlock->SetText(FText::FromString(FString::FromInt(ActiveActionPoints))); ActionPointsTextBlock->SetText(FText::FromString(FString::FromInt(ActiveActionPoints)));
} }

View File

@ -29,9 +29,9 @@ public:
UPROPERTY(EditDefaultsOnly) UPROPERTY(EditDefaultsOnly)
int ActiveActionPoints = 0; int ActiveActionPoints = 0;
AActor* playerActor; AActor* PlayerActor;
AActor* enemyActor; AActor* EnemyActor;
AActor* activeActor; AActor* ActiveActor;
/* /*
TODO: TODO:
@ -108,6 +108,6 @@ private:
UFUNCTION() UFUNCTION()
void BackspaceButtonOnClick(); void BackspaceButtonOnClick();
void UpdateComboString(FString NewCombo); void UpdateComboString(FString NewCombo) const;
void UpdateActionPoints(); void UpdateActionPoints() const;
}; };