LEAP Documentation 40220
Documentation for the LEAP project
AObjectiveCapturePoint Class Reference

#include <ObjectiveCapturePoint.h>

Inheritance diagram for AObjectiveCapturePoint:
ACapturePoint IReactsToObjectiveInterface ISpawnTargetInterface IReactsToMatchEvents ITeamInterface ITrackableInterface

Public Member Functions

AActor * GetObjectiveActor () const
 
virtual void Initialize (int32 NumberOfCheckPointsOverride, float PerPlayerCaptureRateOverride) override
 
virtual void ObjectiveStateUpdated (AProjectXSpawnerObjective *ObjectiveController, const FObjectiveStatus &State) override
 
virtual void SpawnActor ()
 
- 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 IReactsToObjectiveInterface
void OnObjectiveStateUpdated (AProjectXSpawnerObjective *ObjectiveManager, const FObjectiveStatus &State)
 
void OnIntializeObjectiveOwnedObject (AProjectXSpawnerObjective *ObjectiveManager)
 
virtual void ObjectiveStateUpdated (AProjectXSpawnerObjective *ObjectiveController, const FObjectiveStatus &State)
 
virtual void IntializeObjectiveOwnedObject (AProjectXSpawnerObjective *ObjectiveController)
 

Public Attributes

FObjectiveActorSpawnedSignature OnObjectiveActorSpawnedEvent
 
- Public Attributes inherited from ACapturePoint
FControlPointOwnerChangedSignature OnControlPointOwnerChanged
 
FCaptureInfoChanged OnCaptureInfoChanged
 
FCapturePointLockChangedSignature OnCapturePointLockChangedEvent
 
FControlPointOwnerChangedSignature OnPointBeingClaimedEvent
 
FStopTrackingActorSignature StopTrackingCapturePointEvent
 

Protected Member Functions

void OnActorSpawned (AActor *SpawnedInActor)
 
void OnRep_ObjectiveActor ()
 
- 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

TSubclassOf< AActor > SpawnedActorClass = NULL
 
TWeakObjectPtr< AActor > ObjectiveActor = NULL
 
- 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)
 

Member Function Documentation

◆ GetObjectiveActor()

AActor * AObjectiveCapturePoint::GetObjectiveActor ( ) const

◆ Initialize()

void AObjectiveCapturePoint::Initialize ( int32  NumberOfCheckPointsOverride,
float  PerPlayerCaptureRateOverride 
)
overridevirtual

Reimplemented from ACapturePoint.

◆ ObjectiveStateUpdated()

void AObjectiveCapturePoint::ObjectiveStateUpdated ( AProjectXSpawnerObjective ObjectiveController,
const FObjectiveStatus State 
)
overridevirtual

Reimplemented from IReactsToObjectiveInterface.

◆ OnActorSpawned()

void AObjectiveCapturePoint::OnActorSpawned ( AActor *  SpawnedInActor)
protected

◆ OnRep_ObjectiveActor()

void AObjectiveCapturePoint::OnRep_ObjectiveActor ( )
protected

◆ SpawnActor()

void AObjectiveCapturePoint::SpawnActor ( )
virtual

Member Data Documentation

◆ ObjectiveActor

TWeakObjectPtr<AActor> AObjectiveCapturePoint::ObjectiveActor = NULL
protected

◆ OnObjectiveActorSpawnedEvent

FObjectiveActorSpawnedSignature AObjectiveCapturePoint::OnObjectiveActorSpawnedEvent

◆ SpawnedActorClass

TSubclassOf<AActor> AObjectiveCapturePoint::SpawnedActorClass = NULL
protected

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