LEAP Documentation 40220
Documentation for the LEAP project
ADestroyableObjective Class Reference

#include <DestroyableObjective.h>

Inheritance diagram for ADestroyableObjective:
IHealthInterface ITeamInterface

Public Member Functions

 ADestroyableObjective ()
 
virtual void ToggleActivation (bool bToggle)
 
virtual void Tick (float DeltaTime) override
 
virtual float TakeDamage (float DamageAmount, struct FDamageEvent const &DamageEvent, class AController *EventInstigator, AActor *DamageCauser) override
 
FORCEINLINE bool IsObjectiveActive () const
 
FORCEINLINE bool IsObjectiveProperlyInitialized () const
 
virtual int32 GetTeam () const override
 
virtual int32 SetTeam (int32 NewTeam) override
 
virtual bool IsDead () const override
 
virtual float GetHealth () const override
 
virtual float GetMaxHealth () const override
 
virtual void SetHealth (const float NewHealth) override
 
virtual void SetHealthRegenRate (float NewRate) override
 
virtual float GetTimeSinceLastDamage () const override
 
virtual UAfflictionComponent * GetAfflictionComponent () const override
 
- Public Member Functions inherited from IHealthInterface
virtual bool IsArmored () const
 
virtual void SetDamageResistance (float NewValue)
 
virtual void SetExplosiveDamageResistance (float NewValue)
 
virtual float GetDamageResistance () const
 
virtual float GetExplosiveDamageResistance () const
 
virtual bool AreShieldsFull () const
 
virtual bool AreShieldsOvercharged () const
 
virtual float GetShields () const
 
virtual float GetMaxShields () const
 
virtual float GetCachedMaxShields () const
 
virtual float GetMaxShieldsWithOvercharge () const
 
virtual float GetPercentShields () const
 
virtual float GetPercentOverchargedShields () const
 
virtual bool HasShields () const
 
virtual bool HasShieldsThatNeedRecharging () const
 
virtual bool IsHealthFull () const
 
virtual float GetHealth () const
 
virtual float GetMaxHealth () const
 
virtual float GetCachedMaxHealth () const
 
virtual float GetCachedOvershield () const
 
virtual float GetPercentHealth () const
 
virtual float GetOvershield () const
 
virtual float GetHealthPickupModifier () const
 
virtual bool IsUsingPassiveShieldRegen () const
 
virtual bool IsDead () const
 
virtual bool CanBeRepaired (const AActor *RepairInstigator) const
 
virtual bool IsHealthWithinGivenPercentage (float TargetPercentage, bool bCheckForLessThanPercentage=true) const
 
virtual void RemoveOverchargedShields ()
 
virtual void ModifyShieldsThenHealth (float Delta)
 
virtual void SetShields (float InShields)
 
virtual void SetMaxShields (const float NewMaxHealth)
 
virtual void ModifyShields (float Delta, bool bCanOvercharge=false)
 
virtual bool CanModifyShieldsPastOverchargeMark () const
 
virtual void SetCanModifyShieldsPastOverchargeMark (bool bNewCanOverchargeShields)
 
virtual void SetShieldRegenRate (float NewRate)
 
virtual void SetOvershield (float NewOvershield)
 
virtual void SetHealth (float InHealth)
 
virtual void SetMaxHealth (const float NewMaxHealth)
 
virtual void ModifyHealth (float Delta)
 
virtual void SetHealthRegenRate (float NewRate)
 
virtual void SetHealthPickupModifier (float NewModifier)
 
virtual float GetTotalPercentHealth () const
 
virtual float GetTimeSinceLastDamage () const
 
virtual bool HasRecentlyTakenDamage () const
 
virtual void SetShieldAndHealthRegenRate (float NewRate)
 
virtual void SetCanUsePassiveShieldRegen (bool bNewUsePassiveShieldRegen)
 
virtual bool GetCachedUsesPassiveShieldRegen () const
 
virtual UAfflictionComponent * GetAfflictionComponent () const
 
virtual FDamageSignature & GetDeathEvent ()
 
virtual FDamageSignature & GetDamageEvent ()
 
virtual FHealedSignature & GetHealedEvent ()
 
virtual FHealedSignature & GetShieldsRepairedEvent ()
 
virtual FHealthChangedSignature & GetHealthChangedEvent ()
 
virtual FHealthChangedSignature & GetShieldsChangedEvent ()
 
virtual FHealthChangedSignature & GetShieldsDepletedEvent ()
 
virtual void BindToDeathEvent (const FBPDamageSignature &Event)
 
virtual void BindToDamageEvent (const FBPDamageSignature &Event)
 
virtual void BindToHealedEvent (const FBPHealedSignature &Event)
 
virtual void BindToShieldsRepairedEvent (const FBPHealedSignature &Event)
 
virtual void BindToHealthChangedEvent (const FBPHealthChangedSignature &Event)
 
virtual void BindToShieldsChangedEvent (const FBPHealthChangedSignature &Event)
 
virtual void BindToShieldsDepletedEvent (const FBPHealthChangedSignature &Event)
 
virtual void UnbindDeathEvent (const FBPDamageSignature &Event)
 
virtual void UnbindDamageEvent (const FBPDamageSignature &Event)
 
virtual void UnbindHealedEvent (const FBPHealedSignature &Event)
 
virtual void UnbindShieldsRepairedEvent (const FBPHealedSignature &Event)
 
virtual void UnbindHealthChangedEvent (const FBPHealthChangedSignature &Event)
 
virtual void UnbindShieldsChangedEvent (const FBPHealthChangedSignature &Event)
 
virtual void UnbindShieldsDepletedEvent (const FBPHealthChangedSignature &Event)
 
virtual void ClearAllToDeathEvents ()
 
virtual void ClearAllDamageEvents ()
 
virtual void ClearAllHealedEvents ()
 
virtual void ClearAllShieldsRepairedEvents ()
 
virtual void ClearAllHealthChangedEvents ()
 
virtual void ClearAllShieldsChangedEvents ()
 
virtual void ClearAllShieldsDepletedEvents ()
 
virtual bool BlocksExplosions () const
 
virtual int32 GetTeam () const
 
virtual int32 SetTeam (int32 NewTeam)
 

Public Attributes

FObjectiveDamagedSignature OnObjectiveDamaged
 
FObjectiveDamagedSignature OnObjectiveDestroyed
 
FObjectiveEventSignature OnObjectiveOwnerChanged
 
FObjectiveEventSignature OnObjectiveActivationChanged
 
FObjectiveEventSignature OnObjectiveProperlyInitialized
 
FObjectivePointTeamChangedSignature OnTeamChangedEvent
 
- Public Attributes inherited from IHealthInterface
FDamageSignature PawnInterfaceDeathEvent
 
FDamageSignature PawnInterfaceDamageEvent
 
FHealedSignature PawnInterfaceHealedEvent
 
FHealedSignature PawnInterfaceShieldsRepairedEvent
 
FHealthChangedSignature PawnInterfaceHealthChangedEvent
 
FHealthChangedSignature PawnInterfaceShieldshangedEvent
 
FHealthChangedSignature PawnInterfaceShieldDepletedEvent
 

Protected Member Functions

virtual void BeginPlay () override
 
virtual void EndPlay (const EEndPlayReason::Type EndplayReason) override
 
virtual void OnRep_Owner () override
 
virtual void Die (float Damage, struct FDamageEvent const &DamageEvent, AController *EventInstigator, AActor *DamageCauser, const FHitResult &HitResult, APlayerState *InstigatorPlayerState)
 
virtual void StartPassiveRegenDelay ()
 
virtual void BeginPassiveRegen ()
 
virtual void StopPassiveRegen ()
 
virtual void CheckForInitialization ()
 
void OnObjectiveInitialized ()
 
virtual void OnRep_Health (float PreviousHealth)
 
virtual void OnRep_Activation ()
 
virtual void OnRep_Team ()
 
void Multicast_Die (float Damage, struct FDamageEvent const &DamageEvent, AController *EventInstigator, AActor *DamageCauser, const FHitResult &Hit, APlayerState *InstigatorPlayerState)
 

Protected Attributes

float MaxHealth = 1000.f
 
bool bUsePassiveHealthRegen = true
 
float PassiveHealthRegenDelay = 5.f
 
float PassiveHealthRegenRate = 10.f
 
bool bUserOwnerTeam = true
 
EXPEventType OnDamageTakenXPEvent = EXPEventType::ObjectiveDamaged
 
EXPEventType OnDeathXPEvent = EXPEventType::ObjectiveDestroyed
 
bool bRegisterTargetOnBeginPlay = true
 

Additional Inherited Members

- Static Public Member Functions inherited from ITeamInterface
static bool IsValidTeam (const ITeamInterface *const TeamInferface)
 

Constructor & Destructor Documentation

◆ ADestroyableObjective()

ADestroyableObjective::ADestroyableObjective ( )

Member Function Documentation

◆ BeginPassiveRegen()

void ADestroyableObjective::BeginPassiveRegen ( )
protectedvirtual

◆ BeginPlay()

void ADestroyableObjective::BeginPlay ( )
overrideprotectedvirtual

◆ CheckForInitialization()

void ADestroyableObjective::CheckForInitialization ( )
protectedvirtual

◆ Die()

void ADestroyableObjective::Die ( float  Damage,
struct FDamageEvent const &  DamageEvent,
AController *  EventInstigator,
AActor *  DamageCauser,
const FHitResult &  HitResult,
APlayerState *  InstigatorPlayerState 
)
protectedvirtual

◆ EndPlay()

void ADestroyableObjective::EndPlay ( const EEndPlayReason::Type  EndplayReason)
overrideprotectedvirtual

◆ GetAfflictionComponent()

virtual UAfflictionComponent * ADestroyableObjective::GetAfflictionComponent ( ) const
inlineoverridevirtual

Reimplemented from IHealthInterface.

◆ GetHealth()

virtual float ADestroyableObjective::GetHealth ( ) const
inlineoverridevirtual

Reimplemented from IHealthInterface.

◆ GetMaxHealth()

virtual float ADestroyableObjective::GetMaxHealth ( ) const
inlineoverridevirtual

Reimplemented from IHealthInterface.

◆ GetTeam()

int32 ADestroyableObjective::GetTeam ( ) const
overridevirtual

Reimplemented from ITeamInterface.

◆ GetTimeSinceLastDamage()

float ADestroyableObjective::GetTimeSinceLastDamage ( ) const
overridevirtual

Reimplemented from IHealthInterface.

◆ IsDead()

virtual bool ADestroyableObjective::IsDead ( ) const
inlineoverridevirtual

Reimplemented from IHealthInterface.

◆ IsObjectiveActive()

FORCEINLINE bool ADestroyableObjective::IsObjectiveActive ( ) const
inline

◆ IsObjectiveProperlyInitialized()

FORCEINLINE bool ADestroyableObjective::IsObjectiveProperlyInitialized ( ) const
inline

◆ Multicast_Die()

void ADestroyableObjective::Multicast_Die ( float  Damage,
struct FDamageEvent const &  DamageEvent,
AController *  EventInstigator,
AActor *  DamageCauser,
const FHitResult &  Hit,
APlayerState *  InstigatorPlayerState 
)
protected

◆ OnObjectiveInitialized()

void ADestroyableObjective::OnObjectiveInitialized ( )
protected

◆ OnRep_Activation()

void ADestroyableObjective::OnRep_Activation ( )
protectedvirtual

◆ OnRep_Health()

void ADestroyableObjective::OnRep_Health ( float  PreviousHealth)
protectedvirtual

◆ OnRep_Owner()

void ADestroyableObjective::OnRep_Owner ( )
overrideprotectedvirtual

◆ OnRep_Team()

void ADestroyableObjective::OnRep_Team ( )
protectedvirtual

◆ SetHealth()

void ADestroyableObjective::SetHealth ( const float  NewHealth)
overridevirtual

Reimplemented from IHealthInterface.

◆ SetHealthRegenRate()

virtual void ADestroyableObjective::SetHealthRegenRate ( float  NewRate)
inlineoverridevirtual

Reimplemented from IHealthInterface.

◆ SetTeam()

int32 ADestroyableObjective::SetTeam ( int32  NewTeam)
overridevirtual

Reimplemented from ITeamInterface.

◆ StartPassiveRegenDelay()

void ADestroyableObjective::StartPassiveRegenDelay ( )
protectedvirtual

◆ StopPassiveRegen()

void ADestroyableObjective::StopPassiveRegen ( )
protectedvirtual

◆ TakeDamage()

float ADestroyableObjective::TakeDamage ( float  DamageAmount,
struct FDamageEvent const &  DamageEvent,
class AController *  EventInstigator,
AActor *  DamageCauser 
)
overridevirtual

◆ Tick()

void ADestroyableObjective::Tick ( float  DeltaTime)
overridevirtual

◆ ToggleActivation()

void ADestroyableObjective::ToggleActivation ( bool  bToggle)
virtual

Member Data Documentation

◆ bRegisterTargetOnBeginPlay

bool ADestroyableObjective::bRegisterTargetOnBeginPlay = true
protected

◆ bUsePassiveHealthRegen

bool ADestroyableObjective::bUsePassiveHealthRegen = true
protected

◆ bUserOwnerTeam

bool ADestroyableObjective::bUserOwnerTeam = true
protected

◆ MaxHealth

float ADestroyableObjective::MaxHealth = 1000.f
protected

◆ OnDamageTakenXPEvent

EXPEventType ADestroyableObjective::OnDamageTakenXPEvent = EXPEventType::ObjectiveDamaged
protected

◆ OnDeathXPEvent

EXPEventType ADestroyableObjective::OnDeathXPEvent = EXPEventType::ObjectiveDestroyed
protected

◆ OnObjectiveActivationChanged

FObjectiveEventSignature ADestroyableObjective::OnObjectiveActivationChanged

◆ OnObjectiveDamaged

FObjectiveDamagedSignature ADestroyableObjective::OnObjectiveDamaged

◆ OnObjectiveDestroyed

FObjectiveDamagedSignature ADestroyableObjective::OnObjectiveDestroyed

◆ OnObjectiveOwnerChanged

FObjectiveEventSignature ADestroyableObjective::OnObjectiveOwnerChanged

◆ OnObjectiveProperlyInitialized

FObjectiveEventSignature ADestroyableObjective::OnObjectiveProperlyInitialized

◆ OnTeamChangedEvent

FObjectivePointTeamChangedSignature ADestroyableObjective::OnTeamChangedEvent

◆ PassiveHealthRegenDelay

float ADestroyableObjective::PassiveHealthRegenDelay = 5.f
protected

◆ PassiveHealthRegenRate

float ADestroyableObjective::PassiveHealthRegenRate = 10.f
protected

The documentation for this class was generated from the following files: