LEAP Documentation 40220
Documentation for the LEAP project
ATeamDeathmatchSpawnPoint Class Reference

#include <TeamDeathmatchSpawnPoint.h>

Inheritance diagram for ATeamDeathmatchSpawnPoint:
ISpawnTargetInterface IReactsToMatchEvents ITeamInterface ACommandCenter

Public Member Functions

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)
 

Protected Member Functions

bool GetPlayerStartList (uint8 Team, TArray< AActor * > &PlayerStartList) const
 
void SavePlayerStart (AStartPointVolume *StartVolume, TArray< AActor * > &PlayerStartList, APlayerStart *PlayerStart)
 

Protected Attributes

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)
 

Member Function Documentation

◆ BeginPlay()

void ATeamDeathmatchSpawnPoint::BeginPlay ( )
overridevirtual

Reimplemented in ACommandCenter.

◆ CanSpawnPlayer()

bool ATeamDeathmatchSpawnPoint::CanSpawnPlayer ( const AProjectXPlayerState SpawnInstigator) const
virtual

Reimplemented from ISpawnTargetInterface.

◆ CollectPlayerStartList()

void ATeamDeathmatchSpawnPoint::CollectPlayerStartList ( )
virtual

◆ GetPlayerStart()

AActor * ATeamDeathmatchSpawnPoint::GetPlayerStart ( class AController *  Player) const
virtual

◆ GetPlayerStartList()

bool ATeamDeathmatchSpawnPoint::GetPlayerStartList ( uint8  Team,
TArray< AActor * > &  PlayerStartList 
) const
protected

◆ GetPointName()

virtual FText ATeamDeathmatchSpawnPoint::GetPointName ( ) const
inlinevirtual

◆ GetSpawnLocation()

bool ATeamDeathmatchSpawnPoint::GetSpawnLocation ( AProjectXPlayerState SpawnInstigator,
FTransform &  Transform 
) const
overridevirtual

Reimplemented from ISpawnTargetInterface.

◆ GetSpawnScoreForInstigator()

float ATeamDeathmatchSpawnPoint::GetSpawnScoreForInstigator ( const AActor *const  QueryInstigator,
FVector &  TargetLocation,
bool  bUseDistanceToTargetLocation = false 
) const
overridevirtual

Reimplemented from ISpawnTargetInterface.

◆ GetTeam()

virtual int32 ATeamDeathmatchSpawnPoint::GetTeam ( ) const
inlineoverridevirtual

Reimplemented from ITeamInterface.

◆ MatchStarted()

void ATeamDeathmatchSpawnPoint::MatchStarted ( )
overridevirtual

Reimplemented from IReactsToMatchEvents.

◆ SavePlayerStart()

void ATeamDeathmatchSpawnPoint::SavePlayerStart ( AStartPointVolume StartVolume,
TArray< AActor * > &  PlayerStartList,
APlayerStart *  PlayerStart 
)
protected

◆ UpdateSpawnRanges()

void ATeamDeathmatchSpawnPoint::UpdateSpawnRanges ( int32  MaxSpawnRange,
int32  MinSpawnRange 
)
inline

Member Data Documentation

◆ bMatchStarted

bool ATeamDeathmatchSpawnPoint::bMatchStarted = false
protected

◆ DefaultTeam

int32 ATeamDeathmatchSpawnPoint::DefaultTeam = INDEX_NONE
protected

◆ GamePlayPlayerStartList

TArray<AActor*> ATeamDeathmatchSpawnPoint::GamePlayPlayerStartList
protected

◆ GamePlayStartPointVolumes

TArray<AStartPointVolume*> ATeamDeathmatchSpawnPoint::GamePlayStartPointVolumes
protected

◆ MatchStartPlayerStartList

TMap<uint8, TArray<AActor*> > ATeamDeathmatchSpawnPoint::MatchStartPlayerStartList
protected

◆ MatchStartPointVolumes

TMap<uint8, AStartPointVolume*> ATeamDeathmatchSpawnPoint::MatchStartPointVolumes
protected

◆ MaxSpawnPointSearchDistance

float ATeamDeathmatchSpawnPoint::MaxSpawnPointSearchDistance = 6000.0f
protected

◆ MinSpawnPointSearchDistance

float ATeamDeathmatchSpawnPoint::MinSpawnPointSearchDistance = 3000.0f
protected

◆ PointName

FText ATeamDeathmatchSpawnPoint::PointName
protected

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