Payback 0.0.1
CK Graduation Project
로딩중...
검색중...
일치하는것 없음
UComboCounterWidget 클래스 참조

#include <ComboCounterWidget.h>

UComboCounterWidget에 대한 상속 다이어그램 :
Inheritance graph
UComboCounterWidget에 대한 협력 다이어그램:
Collaboration graph

Public 멤버 함수

virtual void SetAbilitySystemComponent (AActor *InOwner) override
 
virtual void ResetAbilitySystemComponent (AActor *InOwner) override
 
virtual void OnPushedToLayer () override
 
virtual void OnPoppedFromLayer () override
 
void IncreaseComboCount (int32 ComboCount)
 
void ResetComboCount (int32 InitCount=0)
 
- UUserWidgetBase(으)로부터 상속된 Public 멤버 함수
UUserPresenterBase * RequestPresenter ()
 
UUserPresenterBase * FindPresenter () const
 
void ReleasePresenter ()
 
virtual void BindPresenter_Implementation (UObject *Presenter) override
 
virtual void UnbindPresenter_Implementation (UObject *Presenter) override
 
virtual UAbilitySystemComponent * GetAbilitySystemComponent () const override
 
virtual void OnActivated ()
 
virtual void OnDeactivated ()
 
void Activate ()
 
void Deactivate ()
 
bool CanBePushedToLayer () const
 
FORCEINLINE UWaitForWidgetActivation * GetActivationHandle ()
 
FORCEINLINE TSubclassOf< UUserPresenterBase > GetWidgetPresenterClass () const
 
FORCEINLINE FGameplayTag GetLayerTag () const
 
FORCEINLINE void SetLayerTag (const FGameplayTag InTag)
 
FORCEINLINE bool IsPrimary () const
 
FORCEINLINE void SetPrimary (const bool InPrimary)
 
FORCEINLINE EWidgetState GetWidgetState () const
 
FORCEINLINE void SetWidgetState (const EWidgetState InState)
 
FORCEINLINE bool HasAppearanceAnim () const
 
FORCEINLINE bool HasDisappearanceAnim () const
 
- IWidgetViewInterface(으)로부터 상속된 Public 멤버 함수
void BindPresenter (UObject *Presenter)
 
void UnbindPresenter (UObject *Presenter)
 

Protected 멤버 함수

virtual void NativeDestruct () override
 
virtual void IncreaseComboCount_Implementation (int32 ComboCount)
 
virtual void ResetComboCount_Implementation (int32 InitCount)
 
- UUserWidgetBase(으)로부터 상속된 Protected 멤버 함수
virtual void OnWidgetStateChanged (EWidgetState InState)
 
virtual void NativeConstruct () override
 
virtual void OnWidgetActivated ()
 
virtual void OnWidgetDeactivated ()
 
void OnPushedToLayer_Internal ()
 
void OnPoppedFromLayer_Internal ()
 
void OnActivated_Internal ()
 
void OnDeactivated_Internal ()
 

Protected 속성

TObjectPtr< UWidgetAnimation > ComboAnim
 
TObjectPtr< UTextBlock > ComboCounterText
 
FDelegateHandle ComboCountChangedDelegateHandle
 
- UUserWidgetBase(으)로부터 상속된 Protected 속성
TSubclassOf< UUserPresenterBase > PresenterClass
 
EWidgetState WidgetState
 
TObjectPtr< UAbilitySystemComponent > ASC
 
FGameplayTag LayerTag
 
bool bPrimary = false
 
TObjectPtr< UWidgetAnimation > AppearanceAnim
 
TObjectPtr< UWidgetAnimation > DisappearanceAnim
 

Private 멤버 함수

void BindComboAttribute ()
 
void UnbindComboAttribute ()
 
void OnComboCountChanged (const FOnAttributeChangeData &ChangeData)
 

멤버 함수 문서화

◆ BindComboAttribute()

void UComboCounterWidget::BindComboAttribute ( )
private
79{
80 if (IsValid(ASC) == false || ASC->GetSet<UPlayerAttributeSet>() == nullptr)
81 {
82 return;
83 }
84
85 const FGameplayAttribute ComboAttribute = UPlayerAttributeSet::GetComboCountAttribute();
86 if (ComboCountChangedDelegateHandle.IsValid() == false)
87 {
88 ComboCountChangedDelegateHandle = ASC->GetGameplayAttributeValueChangeDelegate(ComboAttribute).AddUObject(this, &ThisClass::OnComboCountChanged);
89 }
90
91 // 재생성하거나 다시 표시할 때 현재 값을 복원하되, 타격 애니메이션은 재생하지 않는다.
92 ResetComboCount(FMath::RoundToInt(ASC->GetNumericAttribute(ComboAttribute)));
93}
void ResetComboCount(int32 InitCount=0)
FDelegateHandle ComboCountChangedDelegateHandle
Definition ComboCounterWidget.h:51
Definition PlayerAttributeSet.h:10
TObjectPtr< UAbilitySystemComponent > ASC
Definition UserWidgetBase.h:167

다음을 참조함 : UUserWidgetBase::ASC, ComboCountChangedDelegateHandle, ResetComboCount().

다음에 의해서 참조됨 : OnPushedToLayer(), SetAbilitySystemComponent().

이 함수 내부에서 호출하는 함수들에 대한 그래프입니다.:
이 함수를 호출하는 함수들에 대한 그래프입니다.:

◆ IncreaseComboCount()

void UComboCounterWidget::IncreaseComboCount ( int32  ComboCount)

다음에 의해서 참조됨 : OnComboCountChanged().

이 함수를 호출하는 함수들에 대한 그래프입니다.:

◆ IncreaseComboCount_Implementation()

void UComboCounterWidget::IncreaseComboCount_Implementation ( int32  ComboCount)
protectedvirtual
50{
52 {
53 ComboCounterText->SetText(FText::AsNumber(FMath::Max(ComboCount, 0)));
54 }
55
56 if (ComboAnim && ComboCount > 0)
57 {
58 StopAnimation(ComboAnim);
59 PlayAnimation(ComboAnim);
60 }
61}
TObjectPtr< UWidgetAnimation > ComboAnim
Definition ComboCounterWidget.h:45
TObjectPtr< UTextBlock > ComboCounterText
Definition ComboCounterWidget.h:48

다음을 참조함 : ComboAnim, ComboCounterText.

◆ NativeDestruct()

void UComboCounterWidget::NativeDestruct ( )
overrideprotectedvirtual

UUserWidgetBase(으)로부터 재구현되었습니다.

43{
45 Super::NativeDestruct();
46}
void UnbindComboAttribute()
Definition ComboCounterWidget.cpp:96

다음을 참조함 : UnbindComboAttribute().

이 함수 내부에서 호출하는 함수들에 대한 그래프입니다.:

◆ OnComboCountChanged()

void UComboCounterWidget::OnComboCountChanged ( const FOnAttributeChangeData &  ChangeData)
private
108{
109 const int32 NewCount = FMath::Max(FMath::RoundToInt(ChangeData.NewValue), 0);
110 if (NewCount > 0 && ChangeData.NewValue > ChangeData.OldValue)
111 {
112 IncreaseComboCount(NewCount);
113 return;
114 }
115
116 ResetComboCount(NewCount);
118 {
119 Deactivate();
120 }
121}
void IncreaseComboCount(int32 ComboCount)
FORCEINLINE EWidgetState GetWidgetState() const
Definition UserWidgetBase.h:108
void Deactivate()
Definition UserWidgetBase.cpp:170

다음을 참조함 : Appeared, Appearing, UUserWidgetBase::Deactivate(), UUserWidgetBase::GetWidgetState(), IncreaseComboCount(), ResetComboCount().

이 함수 내부에서 호출하는 함수들에 대한 그래프입니다.:

◆ OnPoppedFromLayer()

void UComboCounterWidget::OnPoppedFromLayer ( )
overridevirtual

UUserWidgetBase(으)로부터 재구현되었습니다.

36{
38 Super::OnPoppedFromLayer();
39}

다음을 참조함 : UnbindComboAttribute().

이 함수 내부에서 호출하는 함수들에 대한 그래프입니다.:

◆ OnPushedToLayer()

void UComboCounterWidget::OnPushedToLayer ( )
overridevirtual

UUserWidgetBase(으)로부터 재구현되었습니다.

29{
31 Super::OnPushedToLayer();
32}
void BindComboAttribute()
Definition ComboCounterWidget.cpp:78

다음을 참조함 : BindComboAttribute().

이 함수 내부에서 호출하는 함수들에 대한 그래프입니다.:

◆ ResetAbilitySystemComponent()

void UComboCounterWidget::ResetAbilitySystemComponent ( AActor *  InOwner)
overridevirtual

UUserWidgetBase(으)로부터 재구현되었습니다.

21{
24 Super::ResetAbilitySystemComponent(InOwner);
25}

다음을 참조함 : ResetComboCount(), UnbindComboAttribute().

이 함수 내부에서 호출하는 함수들에 대한 그래프입니다.:

◆ ResetComboCount()

void UComboCounterWidget::ResetComboCount ( int32  InitCount = 0)

다음에 의해서 참조됨 : BindComboAttribute(), OnComboCountChanged(), ResetAbilitySystemComponent().

이 함수를 호출하는 함수들에 대한 그래프입니다.:

◆ ResetComboCount_Implementation()

void UComboCounterWidget::ResetComboCount_Implementation ( int32  InitCount)
protectedvirtual
65{
66 if (ComboAnim)
67 {
68 StopAnimation(ComboAnim);
69 }
70
72 {
73 ComboCounterText->SetText(FText::AsNumber(FMath::Max(InitCount, 0)));
74 }
75}

다음을 참조함 : ComboAnim, ComboCounterText.

◆ SetAbilitySystemComponent()

void UComboCounterWidget::SetAbilitySystemComponent ( AActor *  InOwner)
overridevirtual

UUserWidgetBase(으)로부터 재구현되었습니다.

13{
15 Super::SetAbilitySystemComponent(InOwner);
17}

다음을 참조함 : BindComboAttribute(), UnbindComboAttribute().

이 함수 내부에서 호출하는 함수들에 대한 그래프입니다.:

◆ UnbindComboAttribute()

void UComboCounterWidget::UnbindComboAttribute ( )
private
97{
98 if (IsValid(ASC) && ComboCountChangedDelegateHandle.IsValid())
99 {
100 ASC->GetGameplayAttributeValueChangeDelegate(UPlayerAttributeSet::GetComboCountAttribute()).Remove(ComboCountChangedDelegateHandle);
101 }
102
104}

다음을 참조함 : UUserWidgetBase::ASC, ComboCountChangedDelegateHandle.

다음에 의해서 참조됨 : NativeDestruct(), OnPoppedFromLayer(), ResetAbilitySystemComponent(), SetAbilitySystemComponent().

이 함수를 호출하는 함수들에 대한 그래프입니다.:

멤버 데이터 문서화

◆ ComboAnim

TObjectPtr<UWidgetAnimation> UComboCounterWidget::ComboAnim
protected

◆ ComboCountChangedDelegateHandle

FDelegateHandle UComboCounterWidget::ComboCountChangedDelegateHandle
protected

다음에 의해서 참조됨 : BindComboAttribute(), UnbindComboAttribute().

◆ ComboCounterText

TObjectPtr<UTextBlock> UComboCounterWidget::ComboCounterText
protected

이 클래스에 대한 문서화 페이지는 다음의 파일들로부터 생성되었습니다.: