LEAP Documentation 40220
Documentation for the LEAP project
ACommandCenter Class Reference

#include <CommandCenter.h>

Inheritance diagram for ACommandCenter:
ATeamDeathmatchSpawnPoint IAllOutWarfareObjectiveInterface ISpawnTargetInterface IReactsToMatchEvents ITeamInterface

Public Member Functions

 ACommandCenter ()
 
virtual void BeginPlay () override
 
virtual void DefensesDepleted ()
 
virtual void DestroyCommandCenter ()
 
virtual float GetObjectiveHealth () const override
 
virtual float GetObjectiveMaxHealth () const override
 
virtual bool GetIsObjectiveDead () const
 
virtual int32 GetObjectiveTeam () const
 
virtual int32 GetObjectiveSortOrder () const
 
virtual bool GetIsObjectiveProperlyInitialized () const
 
bool HasDefensesUp () const
 
virtual void OnPartDamageTaken (ADestroyableObjective *Objective, const float Damage, struct FDamageEvent const &DamageEvent, class AController *EventInstigator, class AActor *DamageCauser, class APlayerState *InstigatorPlayerState)
 
virtual void OnPartDestroyed (ADestroyableObjective *Objective, const float Damage, struct FDamageEvent const &DamageEvent, class AController *EventInstigator, class AActor *DamageCauser, class APlayerState *InstigatorPlayerState)
 
virtual void OnPartActivationChanged (ADestroyableObjective *Objective)
 
- Public Member Functions inherited from ATeamDeathmatchSpawnPoint
virtual void BeginPlay () override
 
virtual FText GetPointName () const
 
virtual bool GetSpawnLocation (AProjectXPlayerState *SpawnInstigator, FTransform &Transform) const override
 
virtual AActor * GetPlayerStart (class AController *Player) const
 
virtual bool CanSpawnPlayer (const AProjectXPlayerState *SpawnInstigator) const
 
virtual float GetSpawnScoreForInstigator (const AActor *const QueryInstigator, FVector &TargetLocation, bool bUseDistanceToTargetLocation=false) const override
 
virtual void CollectPlayerStartList ()
 
virtual void MatchStarted () override
 
void UpdateSpawnRanges (int32 MaxSpawnRange, int32 MinSpawnRange)
 
virtual int32 GetTeam () const override
 
- Public Member Functions inherited from ISpawnTargetInterface
virtual void RegisterActorForScoring ()
 
virtual void DeRegisterActorForScoring ()
 
virtual bool CanSpawnPlayer (const AProjectXPlayerState *Instigator) const
 
virtual bool GetSpawnLocation (AProjectXPlayerState *Instigator, FTransform &Transform) const
 
virtual float GetSpawnScoreForInstigator (const AActor *const QueryInstigator, FVector &TargetLocation, bool bUseDistanceToTargetLocation=false) const
 
virtual bool GetCanSpawnOnCombatTarget () const
 
virtual void UpdateCanSpawnOnCombatTarget (bool bNewInCombatSpawnTarget)
 
virtual bool ShouldRegisterForScoringOnStart () const
 
- Public Member Functions inherited from IReactsToMatchEvents
void OnMatchStarted ()
 
virtual void MatchStarted ()
 
void OnMatchEnded ()
 
virtual void MatchEnded ()
 
- Public Member Functions inherited from ITeamInterface
virtual int32 GetTeam () const
 
virtual int32 SetTeam (int32 NewTeam)
 
- Public Member Functions inherited from IAllOutWarfareObjectiveInterface
virtual float GetObjectiveHealth () const
 
virtual bool GetIsObjectiveDead () const
 
virtual float GetObjectiveMaxHealth () const
 
virtual int32 GetObjectiveTeam () const
 
virtual bool GetIsObjectiveProperlyInitialized () const
 
virtual void SetObjectiveTeam () const
 
virtual int32 GetObjectiveSortOrder () const
 

Public Attributes

FCommandCenterEventSignature OnCommandCenterDestroyed
 
FCommandCenterEventSignature OnCommandCenterUnderAttack
 
FCommandCenterHealthEventSignature OnCommandCenterHealthChanged
 
FCommandCenterEventSignature OnDefensesDepleted
 
FCommandCenterEventSignature OnCommandCenterProperlyInitialized
 

Protected Member Functions

virtual void CheckForInitialization ()
 
void OnCommandCenterInitialized ()
 
virtual void OnHealthChanged (float Delta)
 
- Protected Member Functions inherited from ATeamDeathmatchSpawnPoint
bool GetPlayerStartList (uint8 Team, TArray< AActor * > &PlayerStartList) const
 
void SavePlayerStart (AStartPointVolume *StartVolume, TArray< AActor * > &PlayerStartList, APlayerStart *PlayerStart)
 

Protected Attributes

TArray< ADestroyableObjective * > DestroyableParts
 
TArray< ADeployableAutonomousTurret * > DefensiveTurrets
 
int32 SortOrder = INDEX_NONE
 
- Protected Attributes inherited from ATeamDeathmatchSpawnPoint
int32 DefaultTeam = INDEX_NONE
 
TArray< AStartPointVolume * > GamePlayStartPointVolumes
 
TMap< uint8, AStartPointVolume * > MatchStartPointVolumes
 
TArray< AActor * > GamePlayPlayerStartList
 
TMap< uint8, TArray< AActor * > > MatchStartPlayerStartList
 
FText PointName
 
float MaxSpawnPointSearchDistance = 6000.0f
 
float MinSpawnPointSearchDistance = 3000.0f
 
bool bMatchStarted = false
 

Additional Inherited Members

- Static Public Member Functions inherited from ISpawnTargetInterface
static const void GetAverageEnemyTeamLocation (const UObject *Caller, TArray< AActor * > &AvailableSpawnPoints, FVector &AverageEnemyLocation)
 
static AActor * GetFurthestLocationFromOtherPlayers (const UObject *Caller, TArray< AActor * > &AvailableSpawnPoints)
 
static AActor * GetRandomSafeSpawnLocation (const UObject *Caller, TArray< AActor * > &AvailableSpawnPoints, float MaximumSpawnDistance, float MinimumSpawnDistance)
 
- Static Public Member Functions inherited from ITeamInterface
static bool IsValidTeam (const ITeamInterface *const TeamInferface)
 

Constructor & Destructor Documentation

◆ ACommandCenter()

ACommandCenter::ACommandCenter ( )

Member Function Documentation

◆ BeginPlay()

void ACommandCenter::BeginPlay ( )
overridevirtual

Reimplemented from ATeamDeathmatchSpawnPoint.

◆ CheckForInitialization()

void ACommandCenter::CheckForInitialization ( )
protectedvirtual

◆ DefensesDepleted()

void ACommandCenter::DefensesDepleted ( )
virtual

◆ DestroyCommandCenter()

void ACommandCenter::DestroyCommandCenter ( )
virtual

◆ GetIsObjectiveDead()

virtual bool ACommandCenter::GetIsObjectiveDead ( ) const
inlinevirtual

Reimplemented from IAllOutWarfareObjectiveInterface.

◆ GetIsObjectiveProperlyInitialized()

virtual bool ACommandCenter::GetIsObjectiveProperlyInitialized ( ) const
inlinevirtual

Reimplemented from IAllOutWarfareObjectiveInterface.

◆ GetObjectiveHealth()

float ACommandCenter::GetObjectiveHealth ( ) const
overridevirtual

Reimplemented from IAllOutWarfareObjectiveInterface.

◆ GetObjectiveMaxHealth()

float ACommandCenter::GetObjectiveMaxHealth ( ) const
overridevirtual

Reimplemented from IAllOutWarfareObjectiveInterface.

◆ GetObjectiveSortOrder()

virtual int32 ACommandCenter::GetObjectiveSortOrder ( ) const
inlinevirtual

Reimplemented from IAllOutWarfareObjectiveInterface.

◆ GetObjectiveTeam()

virtual int32 ACommandCenter::GetObjectiveTeam ( ) const
inlinevirtual

Reimplemented from IAllOutWarfareObjectiveInterface.

◆ HasDefensesUp()

bool ACommandCenter::HasDefensesUp ( ) const

◆ OnCommandCenterInitialized()

void ACommandCenter::OnCommandCenterInitialized ( )
protected

◆ OnHealthChanged()

void ACommandCenter::OnHealthChanged ( float  Delta)
protectedvirtual

◆ OnPartActivationChanged()

void ACommandCenter::OnPartActivationChanged ( ADestroyableObjective Objective)
virtual

◆ OnPartDamageTaken()

void ACommandCenter::OnPartDamageTaken ( ADestroyableObjective Objective,
const float  Damage,
struct FDamageEvent const &  DamageEvent,
class AController *  EventInstigator,
class AActor *  DamageCauser,
class APlayerState *  InstigatorPlayerState 
)
virtual

◆ OnPartDestroyed()

void ACommandCenter::OnPartDestroyed ( ADestroyableObjective Objective,
const float  Damage,
struct FDamageEvent const &  DamageEvent,
class AController *  EventInstigator,
class AActor *  DamageCauser,
class APlayerState *  InstigatorPlayerState 
)
virtual

Member Data Documentation

◆ DefensiveTurrets

TArray<ADeployableAutonomousTurret*> ACommandCenter::DefensiveTurrets
protected

◆ DestroyableParts

TArray<ADestroyableObjective*> ACommandCenter::DestroyableParts
protected

◆ OnCommandCenterDestroyed

FCommandCenterEventSignature ACommandCenter::OnCommandCenterDestroyed

◆ OnCommandCenterHealthChanged

FCommandCenterHealthEventSignature ACommandCenter::OnCommandCenterHealthChanged

◆ OnCommandCenterProperlyInitialized

FCommandCenterEventSignature ACommandCenter::OnCommandCenterProperlyInitialized

◆ OnCommandCenterUnderAttack

FCommandCenterEventSignature ACommandCenter::OnCommandCenterUnderAttack

◆ OnDefensesDepleted

FCommandCenterEventSignature ACommandCenter::OnDefensesDepleted

◆ SortOrder

int32 ACommandCenter::SortOrder = INDEX_NONE
protected

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