Updated TurnBaseCombat for Code Cleanup
This commit is contained in:
parent
7fb9935e70
commit
e5af4538ea
@ -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)));
|
||||
}
|
||||
|
@ -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;
|
||||
};
|
Loading…
Reference in New Issue
Block a user