LEAP Documentation 40220
Documentation for the LEAP project
AProjectXObjectiveDefendPoints Class Reference

#include <ProjectXObjectiveDefendPoints.h>

Inheritance diagram for AProjectXObjectiveDefendPoints:
AProjectXSpawnerObjective IReactsToMatchEvents ISpawnInterface

Public Attributes

FDefensePointsUpdatedSignature OnDefensePointsUpdatedEvent
 
- Public Attributes inherited from AProjectXSpawnerObjective
FSpawnEventCompleteSignature OnObjectiveCompletedEvent
 
FSpawnProgressSignature OnObjectiveSpawnedEvent
 
FObjectiveStatusUpdatedSignature OnObjectiveStatusUpdatedEvent
 

Protected Member Functions

virtual void BeginPlay () override
 
virtual void InitializeGamePlayObjects () override
 
virtual void ObjectiveStarted () override
 
virtual void ObjectiveComplete () override
 
virtual void CollectSharedObjectivesList (TArray< TWeakObjectPtr< AActor > > SharedActors) override
 
virtual void TogglePointsActiveState (bool bPointsActive)
 
virtual void OnDefensePointDestroyed (AActor *Victim, const float Damage, struct FDamageEvent const &DamageEvent, const AController *EventInstigator, const AActor *DamageCauser, const APlayerState *InstigatorPlayerState)
 
void OnRep_DefensePoints ()
 
- Protected Member Functions inherited from AProjectXSpawnerObjective
virtual void InitializeGamePlayObjects ()
 
virtual void CollectSharedObjectivesList (TArray< TWeakObjectPtr< AActor > > SharedActors)
 
virtual void UpdateObjectiveStat (EObjectiveState State)
 
virtual void RequestObjectiveStatusUpdateDelayed ()
 
virtual void RequestObjectiveStatusUpdate ()
 
virtual void WarmupStarted ()
 
virtual void ObjectiveStarted ()
 
virtual void ObjectiveComplete ()
 
virtual void CleanupComplete ()
 
void OnWarmupStarted ()
 
void OnObjectiveStarted ()
 
void OnObjectiveComplete ()
 
void OnCleanupCompleted ()
 
void OnObjectiveWidgetToggled (UUserWidget *ObjectiveOwnedWidget, bool bToggled)
 
void OnRep_ObjectiveStatus ()
 

Protected Attributes

TArray< TWeakObjectPtr< ADestroyableObjective > > ActiveDefensePoints
 
TArray< ADestroyableObjective * > WorldSpawnedDefensePoints
 
int32 NumberOfPointsToDestroy = 1
 
EDestructionObjectiveRole ObjectiveRole = EDestructionObjectiveRole::Defend
 
- Protected Attributes inherited from AProjectXSpawnerObjective
FObjectiveStatus ObjectiveStatus = FObjectiveStatus()
 
float WarmupDuration = 0.0f
 
float CleanUpDuration = 0.0
 
bool bDestroyWhenFinishedSpawning = false
 
bool bDebug = false
 
TMap< EWaveSpawnerState, FWaveStateInfoWaveInfoOverride
 
TArray< AProjectXSpawnerObjective * > LinkedObjectives = TArray<AProjectXSpawnerObjective*>()
 
TSubclassOf< UUserWidget > ObjectiveWidgetClass = NULL
 
float PlayerScalingValue = 1.0f
 
TWeakObjectPtr< UUserWidget > ObjectiveWidget = NULL
 
TWeakObjectPtr< AWaveSpawnerOwnedSpawner = NULL
 
TArray< TWeakInterfacePtr< IReactsToObjectiveInterface > > ReactsToObjectiveObjects = TArray<TWeakInterfacePtr<IReactsToObjectiveInterface>>()
 
TArray< TWeakObjectPtr< AActor > > SharedObjectiveActors = TArray<TWeakObjectPtr<AActor>>()
 
EObjectiveComplete ObjectiveCompletion = EObjectiveComplete::NONE
 

Additional Inherited Members

- Public Member Functions inherited from AProjectXSpawnerObjective
EObjectiveState GetObjectiveStat () const
 
UUserWidget *const GetObjectiveWidget () const
 
virtual bool GetWaveInfoOverride (EWaveSpawnerState State, FWaveStateInfo &FoundInfo) const
 
virtual void BeginSpawning_Implementation () override
 
virtual void StopSpawning_Implementation () override
 
virtual bool IsAnObjective () const override
 
virtual AProjectXSpawnerObjectiveGetObjective () override
 
virtual bool IsObjectiveComplete () const
 
virtual void SetObjectiveSucceded (bool bSuccess)
 
virtual FSpawnProgressSignature & GetSpawnCompleteEvent () override
 
virtual FSpawnEventCompleteSignature & GetEventCompleteEvent () override
 
virtual const TArray< TWeakObjectPtr< AActor > > & GetSharedObjectives () const
 
virtual void BeginPlay () override
 
virtual void EndPlay (const EEndPlayReason::Type EndPlayReason) override
 
virtual void StartWarmup ()
 
virtual void StartObjective ()
 
virtual void EndObjective ()
 
virtual void StartCleanup ()
 
virtual void ToggleObjectiveWidget (bool bWidgetActive)
 
- Public Member Functions inherited from IReactsToMatchEvents
void OnMatchStarted ()
 
virtual void MatchStarted ()
 
void OnMatchEnded ()
 
virtual void MatchEnded ()
 
- Public Member Functions inherited from ISpawnInterface
void K2_BeginSpawning (const TArray< TSubclassOf< AActor > > &SpawnOverrideList)
 
void BeginSpawning ()
 
void StopSpawning ()
 
TArray< TScriptInterface< ISpawnInterface > > GetSpawnChildren ()
 
virtual bool IsAnObjective () const
 
virtual AProjectXSpawnerObjectiveGetObjective ()
 
virtual bool ImplementsSpawnCompleteCallback () const
 
virtual FSpawnProgressSignature & GetSpawnCompleteEvent ()
 
virtual FSpawnEventCompleteSignature & GetEventCompleteEvent ()
 

Member Function Documentation

◆ BeginPlay()

void AProjectXObjectiveDefendPoints::BeginPlay ( )
overrideprotectedvirtual

Reimplemented from AProjectXSpawnerObjective.

◆ CollectSharedObjectivesList()

void AProjectXObjectiveDefendPoints::CollectSharedObjectivesList ( TArray< TWeakObjectPtr< AActor > >  SharedActors)
overrideprotectedvirtual

Reimplemented from AProjectXSpawnerObjective.

◆ InitializeGamePlayObjects()

void AProjectXObjectiveDefendPoints::InitializeGamePlayObjects ( )
overrideprotectedvirtual

Reimplemented from AProjectXSpawnerObjective.

◆ ObjectiveComplete()

void AProjectXObjectiveDefendPoints::ObjectiveComplete ( )
overrideprotectedvirtual

Reimplemented from AProjectXSpawnerObjective.

◆ ObjectiveStarted()

void AProjectXObjectiveDefendPoints::ObjectiveStarted ( )
overrideprotectedvirtual

Reimplemented from AProjectXSpawnerObjective.

◆ OnDefensePointDestroyed()

void AProjectXObjectiveDefendPoints::OnDefensePointDestroyed ( AActor *  Victim,
const float  Damage,
struct FDamageEvent const &  DamageEvent,
const AController *  EventInstigator,
const AActor *  DamageCauser,
const APlayerState *  InstigatorPlayerState 
)
protectedvirtual

◆ OnRep_DefensePoints()

void AProjectXObjectiveDefendPoints::OnRep_DefensePoints ( )
protected

◆ TogglePointsActiveState()

void AProjectXObjectiveDefendPoints::TogglePointsActiveState ( bool  bPointsActive)
protectedvirtual

Member Data Documentation

◆ ActiveDefensePoints

TArray<TWeakObjectPtr<ADestroyableObjective> > AProjectXObjectiveDefendPoints::ActiveDefensePoints
protected

◆ NumberOfPointsToDestroy

int32 AProjectXObjectiveDefendPoints::NumberOfPointsToDestroy = 1
protected

◆ ObjectiveRole

EDestructionObjectiveRole AProjectXObjectiveDefendPoints::ObjectiveRole = EDestructionObjectiveRole::Defend
protected

◆ OnDefensePointsUpdatedEvent

FDefensePointsUpdatedSignature AProjectXObjectiveDefendPoints::OnDefensePointsUpdatedEvent

◆ WorldSpawnedDefensePoints

TArray<ADestroyableObjective*> AProjectXObjectiveDefendPoints::WorldSpawnedDefensePoints
protected

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