#include <ProjectilePilotComponent.h>
|
| virtual void | TickComponent (float DeltaTime, ELevelTick TickType, FActorComponentTickFunction *ThisTickFunction) override |
| |
|
| void | BeginFlight (const FVector &InStart, const FVector &InDirectionOrTarget) |
| |
◆ UProjectilePilotComponent()
| UProjectilePilotComponent::UProjectilePilotComponent |
( |
| ) |
|
10{
11 PrimaryComponentTick.bCanEverTick = true;
12 PrimaryComponentTick.bStartWithTickEnabled = false;
13}
◆ BeginFlight()
| void UProjectilePilotComponent::BeginFlight |
( |
const FVector & |
InStart, |
|
|
const FVector & |
InDirectionOrTarget |
|
) |
| |
|
private |
37{
39 {
40 return;
41 }
42
43 AActor* Owner = GetOwner();
44
45 if (!ensure(Owner))
46 {
47 return;
48 }
49
50 Owner->SetActorLocation(InStart, false);
53 SetComponentTickEnabled(true);
54}
TObjectPtr< UProjectileMovementBase > MovementMode
Definition ProjectilePilotComponent.h:67
bool bFlying
Definition ProjectilePilotComponent.h:70
다음을 참조함 : bFlying, MovementMode.
다음에 의해서 참조됨 : Pilot().
◆ GetExpectedTravelDuration()
| FORCEINLINE float UProjectilePilotComponent::GetExpectedTravelDuration |
( |
| ) |
const |
|
inline |
◆ GetVelocity()
| FORCEINLINE FVector UProjectilePilotComponent::GetVelocity |
( |
| ) |
const |
|
inline |
◆ IsFlying()
| FORCEINLINE bool UProjectilePilotComponent::IsFlying |
( |
| ) |
const |
|
inline |
◆ Pilot()
| void UProjectilePilotComponent::Pilot |
( |
const FVector & |
InStart, |
|
|
const FVector & |
InDirectionOrTarget |
|
) |
| |
17{
19}
void BeginFlight(const FVector &InStart, const FVector &InDirectionOrTarget)
Definition ProjectilePilotComponent.cpp:36
다음을 참조함 : BeginFlight().
◆ ResetFlight()
| void UProjectilePilotComponent::ResetFlight |
( |
| ) |
|
30{
32 SetComponentTickEnabled(false);
33}
다음을 참조함 : bFlying.
다음에 의해서 참조됨 : Stop().
◆ Stop()
| void UProjectilePilotComponent::Stop |
( |
| ) |
|
23{
26}
FOnProjectileArrived OnArrived
Definition ProjectilePilotComponent.h:64
void ResetFlight()
Definition ProjectilePilotComponent.cpp:29
다음을 참조함 : OnArrived, ResetFlight().
다음에 의해서 참조됨 : TickComponent().
◆ TickComponent()
| void UProjectilePilotComponent::TickComponent |
( |
float |
DeltaTime, |
|
|
ELevelTick |
TickType, |
|
|
FActorComponentTickFunction * |
ThisTickFunction |
|
) |
| |
|
overrideprotectedvirtual |
58{
59 Super::TickComponent(DeltaTime, TickType, ThisTickFunction);
60
62 {
63 return;
64 }
65
66 AActor* Owner = GetOwner();
67
68 if (!ensure(Owner))
69 {
70 return;
71 }
72
73 const bool bFinished =
MovementMode->Simulate(DeltaTime, Owner);
74
75
77 {
78 return;
79 }
80
81 const float Duration =
MovementMode->GetProjectileDuration();
82
83 if (Duration > 0.0f)
84 {
86 }
87
89 {
91 }
92}
void Stop()
Definition ProjectilePilotComponent.cpp:22
FOnProjectileFlightProgress OnFlightProgress
Definition ProjectilePilotComponent.h:61
다음을 참조함 : bFlying, MovementMode, OnFlightProgress, Stop().
◆ bFlying
| bool UProjectilePilotComponent::bFlying = false |
|
private |
◆ MovementMode
◆ OnArrived
| FOnProjectileArrived UProjectilePilotComponent::OnArrived |
◆ OnFlightProgress
| FOnProjectileFlightProgress UProjectilePilotComponent::OnFlightProgress |
이 클래스에 대한 문서화 페이지는 다음의 파일들로부터 생성되었습니다.: