|
Space Plunder
|
Base class for Damage Indicator & AI Threat Detector. More...
#include <IncomingThreatWidget.h>
Public Member Functions | |
| void | StartThreatIndicationFromActor (AActor *ActorThreat, const float Amount=-1.0f, const UDamageType *DamageType=nullptr) |
| void | StartThreatIndicationFromLocation (const FVector &Location, const float Amount=-1.0f, const UDamageType *DamageType=nullptr) |
| void | OnStartThreatIndication (const bool bActor, const bool bLocation) |
| void | UpdateThreatIndication (const FVector &Location, const float DetectionAmount) |
| void | StopThreatIndication () |
| void | SetLifetime (const float Life) |
Protected Member Functions | |
| virtual bool | Initialize () override |
| virtual void | NativePreConstruct () override |
| virtual void | NativeConstruct () override |
Protected Attributes | |
| class UBorder * | ThreatBorder = nullptr |
| UMaterialInstanceDynamic * | ThreatMaterial = nullptr |
| float | UpdateRate = 0.01f |
| float | Lifetime = 4.0f |
| float | MaxIntensity = 100.0f |
| float | Intensity = -1.0f |
| float | Progress = 0.0f |
| FVector | TargetLocation = FVector::ZeroVector |
| AActor * | TargetActor = nullptr |
| UDamageType * | TargetDamageType = nullptr |
Private Member Functions | |
| void | OptimizedTick () const |
| void | SetThreatAngle () const |
| void | SetThreatIntensity () const |
| void | Destroy () |
Private Attributes | |
| FTimerHandle | LifetimeTimerHandle |
| FTimerHandle | UpdateRateTimerHandle |
Base class for Damage Indicator & AI Threat Detector.
|
private |
|
overrideprotectedvirtual |
|
overrideprotectedvirtual |
|
overrideprotectedvirtual |
| void UIncomingThreatWidget::OnStartThreatIndication | ( | const bool | bActor, |
| const bool | bLocation ) |
|
private |
|
inline |
|
private |
|
private |
| void UIncomingThreatWidget::StartThreatIndicationFromActor | ( | AActor * | ActorThreat, |
| const float | Amount = -1.0f, | ||
| const UDamageType * | DamageType = nullptr ) |
| void UIncomingThreatWidget::StartThreatIndicationFromLocation | ( | const FVector & | Location, |
| const float | Amount = -1.0f, | ||
| const UDamageType * | DamageType = nullptr ) |
| void UIncomingThreatWidget::StopThreatIndication | ( | ) |
| void UIncomingThreatWidget::UpdateThreatIndication | ( | const FVector & | Location, |
| const float | DetectionAmount ) |
|
protected |
|
protected |
|
private |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
private |