LEAP Documentation 40220
Documentation for the LEAP project
AShieldGenerator Class Reference

#include <ShieldGenerator.h>

Inheritance diagram for AShieldGenerator:
ACapturePoint IAllOutWarfareObjectiveInterface ISpawnTargetInterface IReactsToMatchEvents ITeamInterface ITrackableInterface

Public Member Functions

 AShieldGenerator ()
 
virtual bool CanSpawnPlayer (const AProjectXPlayerState *InInstigator) const override
 
virtual void SetLocked (bool bNewLocked) override
 
virtual void Initialize (int32 NumberOfCheckPointsOverride=INDEX_NONE, float PerPlayerCaptureRateOverride=INDEX_NONE) override
 
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
 
virtual bool IsDead () const
 
virtual int32 GetShieldTeam () const
 
FORCEINLINE bool GetTurnsIntoCapturePoint () const
 
- Public Member Functions inherited from ACapturePoint
virtual void Tick (float DeltaTime) override
 
virtual void TickCapture (float DeltaTime)
 
virtual int32 GetActorTeam (AActor *Target) const
 
virtual int32 GetTeam () const override
 
virtual int32 SetTeam (int32 NewTeam) override
 
virtual float GetRadarIconSize () const
 
virtual TSoftObjectPtr< UTexture2D > GetRadarIcon () const override
 
virtual float GetRadarIconOpacity () const override
 
virtual const FText & GetRadarLabel () const
 
virtual void SetRadarIconOpacity (float Opacity) override
 
virtual bool RegisterOnStart () const override
 
virtual FStopTrackingActorSignature & GetStopTrackingEvent () override
 
int32 GetSortOrder () const
 
FText GetPointName () const
 
virtual void SetLocked (bool bNewLocked)
 
virtual bool GetIsLocked () const
 
const FCaptureInfoGetCaptureInfo () const
 
FORCEINLINE float GetCaptureRadius () const
 
virtual void Initialize (int32 NumberOfCheckPointsOverride=INDEX_NONE, float PerPlayerCaptureRateOverride=INDEX_NONE)
 
virtual bool CanSpawnPlayer (const AProjectXPlayerState *Instigator) const override
 
virtual float GetSpawnScoreForInstigator (const AActor *const QueryInstigator, FVector &TargetLocation, bool bUseDistanceToTargetLocation=false) const override
 
virtual bool GetSpawnLocation (AProjectXPlayerState *Instigator, FTransform &Transform) const override
 
void TriggerDelayedActivation ()
 
virtual AActor * GetPlayerStart (class AController *Player) const
 
virtual AActor * GetTrackableInterfaceActor () override
 
virtual void MatchEnded () 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 ()
 
virtual int32 GetTeam () const
 
virtual int32 SetTeam (int32 NewTeam)
 
- Public Member Functions inherited from ITrackableInterface
virtual void BroadcastTrackableActor ()
 
virtual FStopTrackingActorSignature & GetStopTrackingEvent ()
 
virtual TSoftObjectPtr< UTexture2D > GetMapIcon () const
 
virtual TSoftObjectPtr< UTexture2D > GetRadarIcon () const
 
virtual TSoftObjectPtr< UTexture2D > GetHudIcon () const
 
virtual AActor * GetTrackableInterfaceActor ()
 
virtual float GetRadarIconSize () const
 
virtual float GetRadarIconOpacity () const
 
virtual float GetRadarIconEnemyOpacity () const
 
virtual bool GetRadarIconCompensantesRotation () const
 
virtual bool GetAllyVisibilityResponse ()
 
virtual const FText & GetRadarLabel () const
 
virtual void SetRadarIconOpacity (float Opacity)
 
virtual bool IsCloaked () const
 
virtual bool RegisterOnStart () const
 
- 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

FShieldGeneratorEventSignature OnShieldGeneratorDestroyed
 
FShieldGeneratorEventSignature OnShieldUnderAttack
 
FShieldGeneratorHealthEventSignature OnShieldHealthChanged
 
FShieldGeneratorEventSignature OnShieldProperlyInitialized
 
- Public Attributes inherited from ACapturePoint
FControlPointOwnerChangedSignature OnControlPointOwnerChanged
 
FCaptureInfoChanged OnCaptureInfoChanged
 
FCapturePointLockChangedSignature OnCapturePointLockChangedEvent
 
FControlPointOwnerChangedSignature OnPointBeingClaimedEvent
 
FStopTrackingActorSignature StopTrackingCapturePointEvent
 

Protected Member Functions

virtual void BeginPlay () override
 
virtual void DestroyShieldGenerator ()
 
void OnShieldGeneratorInitialized ()
 
virtual void CheckForInitialization ()
 
virtual void OnShieldPartTakeDamage (ADestroyableObjective *Objective, const float Damage, struct FDamageEvent const &DamageEvent, class AController *EventInstigator, class AActor *DamageCauser, class APlayerState *InstigatorPlayerState)
 
virtual void OnShieldPartDestroyed (ADestroyableObjective *Objective, const float Damage, struct FDamageEvent const &DamageEvent, class AController *EventInstigator, class AActor *DamageCauser, class APlayerState *InstigatorPlayerState)
 
virtual void OnShieldGeneratorHealthChanged (float Delta)
 
- Protected Member Functions inherited from ACapturePoint
virtual void BeginPlay () override
 
virtual void CollectPlayerStartList ()
 
void OnOverlap (UPrimitiveComponent *OverlappedComponent, AActor *OtherActor, UPrimitiveComponent *OtherComp, int32 OtherBodyIndex, bool bFromSweep, const FHitResult &SweepResult)
 
void OnOverlapEnd (UPrimitiveComponent *OverlappedComponent, AActor *OtherActor, UPrimitiveComponent *OtherComp, int32 OtherBodyIndex)
 
void UpdateProcessedOccupants ()
 
void CollectInitialOverlaps ()
 
void OnVehiclePassengerChanged (AProjectXVehicle *Vehicle, UVehicleSeatComponent *Seat=NULL, AProjectXCharacter *PreviousPassenger=NULL)
 
bool DoesOccupantHaveAnInvalidAffliction (UAfflictionComponent *AfflictionComponent)
 
void OnRep_Locked ()
 
void OnRep_TeamOwner ()
 
void OnRep_CaptureInfo ()
 
void OnPointOwnerChanged (int LastOwner)
 
void OnCaptureComplete ()
 
void OnCapturePointLockChanged (bool bIsLock)
 
void ResetPoint ()
 
void ChangeCaptureProgress (float Amount)
 
int32 GetTopCapturingTeam () const
 
int32 GetSecondCapturingTeam () const
 
void UpdateCheckPoint ()
 
void SetCaptureInfo (int32 &NumberOfPlayers, int32 &Direction)
 
void AwardCapture (ECaptureType Type, int32 AwardingTeam)
 
const TSubclassOf< UExperienceEventGetExpEventOverride (EXPEventType Type) const
 

Protected Attributes

TArray< ADestroyableObjective * > ShieldParts
 
bool bTurnIntoCapturePoint = false
 
TArray< ADeployableAutonomousTurret * > DefensiveTurrets
 
- Protected Attributes inherited from ACapturePoint
int32 DefaultTeam = INDEX_NONE
 
TSoftObjectPtr< UTexture2D > RadarIcon = nullptr
 
float RadarIconOpacity = 0.3f
 
bool bRegisterOnBeginPlay = true
 
bool bIsTrackableWhenLocked = true
 
TSet< uint8 > ValidCaptureTeams = TSet<uint8>({0,1})
 
float LockedScoringWeight = 0.5f
 
float ControlPointDistanceScoringWeight = 10000.f
 
float CaptureDecayRate = 0.05f
 
float MaxSpawnPointSearchDistance = 10000.0f
 
float MinSpawnPointSearchDistance = 3000.0f
 
int32 SortOrder = INDEX_NONE
 
UCapsuleComponent * CapsuleComponent = NULL
 
TArray< class AStartPointVolume * > StartPointVolumes
 
FText PointName = FText::FromString("X")
 
TArray< TSubclassOf< UAfflictionInstance > > InvalidAfflictionClasses
 
bool bIgnoreTeamWhenSpawning = false
 
bool bResetOnLocked = false
 
float DelayActivationTime = 0.0f
 
TMap< EXPEventType, TSubclassOf< UExperienceEvent > > ExperienceEventOverrides
 
bool bLocked = false
 
int32 TeamOwner = INDEX_NONE
 
FCaptureInfo CaptureInfo
 
TArray< TWeakObjectPtr< AProjectXCharacter > > PlayerOccupants
 
TArray< AActor * > PlayerStartList
 
TMap< int32, int32 > NumberOfOccupantsByTeam
 
TArray< int32 > TeamStandings
 
TArray< float > CaptureCheckPoints
 
int32 CapturingTeam = INDEX_NONE
 
float PerPlayerCaptureRate = 0.1f
 
int32 NumberOfCheckPoints
 
FTimerHandle DelayedUnlockHandle
 

Additional Inherited Members

- Static Public Member Functions inherited from ACapturePoint
static void GetAllControlPoints (const UObject *WorldContextObject, TArray< class ACapturePoint * > &CapturePointList)
 
static void GetBaseControlEventTableRow (const FBaseControlEventTableRow &TableRow, FString &AllySound, FString &EnemySound)
 
- 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

◆ AShieldGenerator()

AShieldGenerator::AShieldGenerator ( )

Member Function Documentation

◆ BeginPlay()

void AShieldGenerator::BeginPlay ( )
overrideprotectedvirtual

Reimplemented from ACapturePoint.

◆ CanSpawnPlayer()

bool AShieldGenerator::CanSpawnPlayer ( const AProjectXPlayerState InInstigator) const
overridevirtual

Reimplemented from ACapturePoint.

◆ CheckForInitialization()

void AShieldGenerator::CheckForInitialization ( )
protectedvirtual

◆ DestroyShieldGenerator()

void AShieldGenerator::DestroyShieldGenerator ( )
protectedvirtual

◆ GetIsObjectiveDead()

virtual bool AShieldGenerator::GetIsObjectiveDead ( ) const
inlinevirtual

Reimplemented from IAllOutWarfareObjectiveInterface.

◆ GetIsObjectiveProperlyInitialized()

virtual bool AShieldGenerator::GetIsObjectiveProperlyInitialized ( ) const
inlinevirtual

Reimplemented from IAllOutWarfareObjectiveInterface.

◆ GetObjectiveHealth()

float AShieldGenerator::GetObjectiveHealth ( ) const
overridevirtual

Reimplemented from IAllOutWarfareObjectiveInterface.

◆ GetObjectiveMaxHealth()

float AShieldGenerator::GetObjectiveMaxHealth ( ) const
overridevirtual

Reimplemented from IAllOutWarfareObjectiveInterface.

◆ GetObjectiveSortOrder()

virtual int32 AShieldGenerator::GetObjectiveSortOrder ( ) const
inlinevirtual

Reimplemented from IAllOutWarfareObjectiveInterface.

◆ GetObjectiveTeam()

virtual int32 AShieldGenerator::GetObjectiveTeam ( ) const
inlinevirtual

Reimplemented from IAllOutWarfareObjectiveInterface.

◆ GetShieldTeam()

virtual int32 AShieldGenerator::GetShieldTeam ( ) const
inlinevirtual

◆ GetTurnsIntoCapturePoint()

FORCEINLINE bool AShieldGenerator::GetTurnsIntoCapturePoint ( ) const
inline

◆ Initialize()

void AShieldGenerator::Initialize ( int32  NumberOfCheckPointsOverride = INDEX_NONE,
float  PerPlayerCaptureRateOverride = INDEX_NONE 
)
overridevirtual

Reimplemented from ACapturePoint.

◆ IsDead()

virtual bool AShieldGenerator::IsDead ( ) const
inlinevirtual

◆ OnShieldGeneratorHealthChanged()

void AShieldGenerator::OnShieldGeneratorHealthChanged ( float  Delta)
protectedvirtual

◆ OnShieldGeneratorInitialized()

void AShieldGenerator::OnShieldGeneratorInitialized ( )
protected

◆ OnShieldPartDestroyed()

void AShieldGenerator::OnShieldPartDestroyed ( ADestroyableObjective Objective,
const float  Damage,
struct FDamageEvent const &  DamageEvent,
class AController *  EventInstigator,
class AActor *  DamageCauser,
class APlayerState *  InstigatorPlayerState 
)
protectedvirtual

◆ OnShieldPartTakeDamage()

void AShieldGenerator::OnShieldPartTakeDamage ( ADestroyableObjective Objective,
const float  Damage,
struct FDamageEvent const &  DamageEvent,
class AController *  EventInstigator,
class AActor *  DamageCauser,
class APlayerState *  InstigatorPlayerState 
)
protectedvirtual

◆ SetLocked()

void AShieldGenerator::SetLocked ( bool  bNewLocked)
overridevirtual

Reimplemented from ACapturePoint.

Member Data Documentation

◆ bTurnIntoCapturePoint

bool AShieldGenerator::bTurnIntoCapturePoint = false
protected

◆ DefensiveTurrets

TArray<ADeployableAutonomousTurret*> AShieldGenerator::DefensiveTurrets
protected

◆ OnShieldGeneratorDestroyed

FShieldGeneratorEventSignature AShieldGenerator::OnShieldGeneratorDestroyed

◆ OnShieldHealthChanged

FShieldGeneratorHealthEventSignature AShieldGenerator::OnShieldHealthChanged

◆ OnShieldProperlyInitialized

FShieldGeneratorEventSignature AShieldGenerator::OnShieldProperlyInitialized

◆ OnShieldUnderAttack

FShieldGeneratorEventSignature AShieldGenerator::OnShieldUnderAttack

◆ ShieldParts

TArray<ADestroyableObjective*> AShieldGenerator::ShieldParts
protected

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