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