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

#include <GA_Base.h>

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

Public 멤버 함수

 UGA_Base ()
 
virtual void EndAbility (const FGameplayAbilitySpecHandle Handle, const FGameplayAbilityActorInfo *ActorInfo, const FGameplayAbilityActivationInfo ActivationInfo, bool bReplicateEndAbility, bool bWasCancelled) override final
 

Protected 멤버 함수

virtual void PreEndAbility (const FGameplayAbilitySpecHandle Handle, const FGameplayAbilityActorInfo *ActorInfo, const FGameplayAbilityActivationInfo ActivationInfo, bool bReplicateEndAbility, bool bWasCancelled)
 
UCharacterMotionWarpingComponentBase * GetMotionWarpingComponent () const
 
void SetupCancelableListener ()
 
void OnCancelableInputDetected (FGameplayEventData Payload)
 
virtual void HandleCancelable (FGameplayEventData Payload)
 
virtual void OnAbilityMontageCompleted ()
 
virtual void OnAbilityMontageInterrupted ()
 
virtual void OnAbilityMontageCancellable ()
 

생성자 & 소멸자 문서화

◆ UGA_Base()

UGA_Base::UGA_Base ( )
14{
15 InstancingPolicy = EGameplayAbilityInstancingPolicy::InstancedPerActor;
16
17 ActivationBlockedTags.AddTag(TAG_CHARACTER_STATE_ISHITSTUN);
18 ActivationBlockedTags.AddTag(TAG_CHARACTER_STATE_ISKNOCKEDDOWN);
19}

멤버 함수 문서화

◆ EndAbility()

void UGA_Base::EndAbility ( const FGameplayAbilitySpecHandle  Handle,
const FGameplayAbilityActorInfo *  ActorInfo,
const FGameplayAbilityActivationInfo  ActivationInfo,
bool  bReplicateEndAbility,
bool  bWasCancelled 
)
finaloverridevirtual
23{
24 if (IsEndAbilityValid(Handle, ActorInfo) == false)
25 {
26 return;
27 }
28
29 // 만약 GA들이 해당 Target들에게 ApplyGameplayEffectSpecToTarget을 통해 GE를 전달중인경우 EndAbility를 중단하고, GE 적용이 완료되면 EndAbility가 호출되도록 바인딩
30 if (ScopeLockCount > 0)
31 {
32 WaitingToExecute.Add(FPostLockDelegate::CreateUObject(this, &ThisClass::EndAbility, Handle, ActorInfo, ActivationInfo, bReplicateEndAbility, bWasCancelled));
33 return;
34 }
35
36 PreEndAbility(Handle, ActorInfo, ActivationInfo, bReplicateEndAbility, bWasCancelled);
37 Super::EndAbility(Handle, ActorInfo, ActivationInfo, bReplicateEndAbility, bWasCancelled);
38}
virtual void PreEndAbility(const FGameplayAbilitySpecHandle Handle, const FGameplayAbilityActorInfo *ActorInfo, const FGameplayAbilityActivationInfo ActivationInfo, bool bReplicateEndAbility, bool bWasCancelled)
Definition GA_Base.cpp:41

다음을 참조함 : PreEndAbility().

다음에 의해서 참조됨 : UGA_KnockDown::ActivateAbility(), UGA_SituationBase::ActivateAbility(), UGA_CombatBase::ActivateAbility(), UGA_Skill_StarFall::CancelDonation(), UGA_Attack::ExecuteAbility(), UGA_SkillBase::ExecuteAbility(), UGA_EnemyAttack::ExecuteAbility(), HandleCancelable(), OnAbilityMontageCancellable(), OnAbilityMontageCompleted(), OnAbilityMontageInterrupted(), OnCancelableInputDetected(), UGA_BossHammerRage::OnChargeFailed(), UGA_EnemyDashAttack::OnDashAimingFailed(), UGA_EnemyDashAttack::OnDashAimingFinished(), UGA_Dash::OnDashFinished(), UGA_EnemyDashAttack::OnDashReady(), UGA_GuardianGroundBlast::OnGroundBlastFailed(), UGA_GuardianSmash::OnHandImpact(), UGA_Skill_StrikeBase::OnHoldingCompleted(), UGA_BossJumpAttack::OnJumpFailed(), UGA_BossHammerSpin::OnLoopStarted(), UGA_BossHammerSpin::OnMoveFinished(), UGA_BossAntiParry::OnNextAttackExecute(), UGA_Skill_StrikeBase::OnPreparingCompleted(), UGA_EnemyAttack::OnRepeatRequested(), UGA_BossSectionPattern::OnRotationFailed(), UGA_BossSectionPattern::OnRotationFinished(), UGA_Skill_Strike::OnStrikeArrived(), UGA_Skill_StrikeBase::OnStrikeMotionWarpDelayCompleted(), UGA_Skill_StrikeBase::OnStrikeMoveCompleted(), UGA_EnemyDashAttack::OnWarningFinished(), UGA_EnemyDashAttack::StartDashMove(), UGA_Skill_StrikeBase::StartStrikePhaseChain(), UGA_Skill_StarFall::TryCompleteDonation().

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

◆ GetMotionWarpingComponent()

UCharacterMotionWarpingComponentBase * UGA_Base::GetMotionWarpingComponent ( ) const
protected
51{
52 const AActor* Avatar = GetAvatarActorFromActorInfo();
53
54 if (Avatar == nullptr)
55 {
56 return nullptr;
57 }
58
59 UCharacterMotionWarpingComponentBase* WarpComponent = Avatar->FindComponentByClass<UCharacterMotionWarpingComponentBase>();
60
61 if (WarpComponent == nullptr)
62 {
63 LOG_ERROR(LogCK, "%s를 찾을 수 없습니다. ", NAMEOF(UCharacterMotionWarpingComponentBase));
64 }
65
66 return WarpComponent;
67}
#define LOG_ERROR(Category, Format,...)
Definition CK_UE.h:41
#define NAMEOF(Type)
Definition CK_UE.h:31
Definition CharacterMotionWarpingComponentBase.h:14

다음을 참조함 : LOG_ERROR, NAMEOF.

다음에 의해서 참조됨 : UGA_Dash::ExecuteAbility(), UGA_SkillBase::ExecuteAbility(), PreEndAbility(), UGA_Skill_StrikeBase::PreEndAbility(), UGA_KnockDown::PreEndAbility(), UGA_Attack::ProceedToNextCombo(), UGA_KnockDown::SetupKnockdownMotionWarp(), UGA_CombatBase::UpdateAttackWarpTargetForRange(), UGA_CombatBase::UpdateAttackWarpTargetForRange().

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

◆ HandleCancelable()

void UGA_Base::HandleCancelable ( FGameplayEventData  Payload)
protectedvirtual

UGA_Attack에서 재구현되었습니다.

97{
98 if (ACharacter* Character = Cast<ACharacter>(GetAvatarActorFromActorInfo()))
99 {
100 if (Character->GetCharacterMovement()->GetLastInputVector().IsNearlyZero() == false)
101 {
102 // 즉시 캔슬
103 EndAbility(CurrentSpecHandle, CurrentActorInfo, CurrentActivationInfo, true, false);
104 return;
105 }
106 }
107
108 UAbilityTask_WaitGameplayEvent* WaitMove = UAbilityTask_WaitGameplayEvent::WaitGameplayEvent(this, TAG_EVENT_INPUT_MOVE, nullptr, true, false);
109
110 if (!WaitMove)
111 {
112 return;
113 }
114
115 WaitMove->EventReceived.AddDynamic(this, &ThisClass::OnCancelableInputDetected);
116 WaitMove->ReadyForActivation();
117}
virtual void EndAbility(const FGameplayAbilitySpecHandle Handle, const FGameplayAbilityActorInfo *ActorInfo, const FGameplayAbilityActivationInfo ActivationInfo, bool bReplicateEndAbility, bool bWasCancelled) override final
Definition GA_Base.cpp:22

다음을 참조함 : EndAbility().

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

◆ OnAbilityMontageCancellable()

void UGA_Base::OnAbilityMontageCancellable ( )
protectedvirtual

UGA_Dash에서 재구현되었습니다.

133{
134 EndAbility(CurrentSpecHandle, CurrentActorInfo, CurrentActivationInfo, true, true);
135}

다음을 참조함 : EndAbility().

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

◆ OnAbilityMontageCompleted()

void UGA_Base::OnAbilityMontageCompleted ( )
protectedvirtual

UGA_GuardianSmash, UGA_Dash에서 재구현되었습니다.

121{
122 EndAbility(CurrentSpecHandle, CurrentActorInfo, CurrentActivationInfo, true, false);
123}

다음을 참조함 : EndAbility().

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

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

◆ OnAbilityMontageInterrupted()

void UGA_Base::OnAbilityMontageInterrupted ( )
protectedvirtual

UGA_Dash에서 재구현되었습니다.

127{
128 EndAbility(CurrentSpecHandle, CurrentActorInfo, CurrentActivationInfo, true, true);
129}

다음을 참조함 : EndAbility().

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

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

◆ OnCancelableInputDetected()

void UGA_Base::OnCancelableInputDetected ( FGameplayEventData  Payload)
protected
86{
87 if (!IsActive())
88 {
89 return;
90 }
91
92 EndAbility(CurrentSpecHandle, CurrentActorInfo, CurrentActivationInfo, true, false);
93}

다음을 참조함 : EndAbility().

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

◆ PreEndAbility()

void UGA_Base::PreEndAbility ( const FGameplayAbilitySpecHandle  Handle,
const FGameplayAbilityActorInfo *  ActorInfo,
const FGameplayAbilityActivationInfo  ActivationInfo,
bool  bReplicateEndAbility,
bool  bWasCancelled 
)
protectedvirtual

UGA_BossHammerRage, UGA_BossHammerSpin, UGA_BossJumpAttack, UGA_BossSectionPattern, UGA_GuardianBeamSweep, UGA_GuardianGroundBlast, UGA_GuardianSmash, UGA_EnemyAttack, UGA_EnemyDashAttack, UGA_EnemyRangedAttack, UGA_Attack, UGA_Dash, UGA_Skill_Charge, UGA_Skill_StarFall, UGA_Skill_StrikeBase, UGA_KnockDown, UGA_SituationBase에서 재구현되었습니다.

42{
44 {
45 WarpComponent->ResetLockOnTarget();
46 }
47}
UCharacterMotionWarpingComponentBase * GetMotionWarpingComponent() const
Definition GA_Base.cpp:50

다음을 참조함 : GetMotionWarpingComponent().

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

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

◆ SetupCancelableListener()

void UGA_Base::SetupCancelableListener ( )
protected
71{
72 // OnlyTriggerOnce을 통해 입력을 한번만 받음.
73 auto WaitCanExit = UAbilityTask_WaitGameplayEvent::WaitGameplayEvent(this, TAG_EVENT_PLAYER_COMBAT_CANCELABLE, nullptr, true, false);
74
75 if (!WaitCanExit)
76 {
77 return;
78 }
79
80 WaitCanExit->EventReceived.AddDynamic(this, &ThisClass::HandleCancelable);
81 WaitCanExit->ReadyForActivation();
82}

다음에 의해서 참조됨 : UGA_Attack::ExecuteAbility(), UGA_SkillBase::ExecuteAbility(), UGA_Skill_StrikeBase::StartStrikePhaseChain().

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

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