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);
}
void ATurnBaseCombat::UpdateComboString(FString NewCombo)
void ATurnBaseCombat::UpdateComboString(FString NewCombo) const
{
CurrentComboTextBlock->SetText(FText::FromString(NewCombo));
}
void ATurnBaseCombat::UpdateActionPoints()
void ATurnBaseCombat::UpdateActionPoints() const
{
ActionPointsTextBlock->SetText(FText::FromString(FString::FromInt(ActiveActionPoints)));
}

View File

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