Space Plunder
Loading...
Searching...
No Matches
FAIActionEvent Struct Reference

#include <AISense_Actions.h>

Public Types

typedef UAISense_Actions FSenseClass
 

Public Member Functions

 FAIActionEvent ()
 
 FAIActionEvent (AActor *Broadcaster, AActor *OtherActor, const FVector &TargetLocation, const EAIActionType ActionType, const float EventRangeMultiplier=1.0f, const float PassedInfoAge=0.f, const float InStrength=1.f)
 
FORCEINLINE void CacheBroadcastLocation ()
 
FORCEINLINE const FVector & GetBroadcastLocation () const
 

Public Attributes

FVector Location
 
FGenericTeamId TeamIdentifier
 
float RangeMultiplier = 1.0f
 
float InformationAge = 0.0f
 
float Strength = 1.0f
 
TObjectPtr< AActor > Broadcaster
 
TObjectPtr< AActor > OtherActor
 
FName ActionName
 
EAIActionType Action
 

Private Attributes

FVector BroadcastLocation
 

Member Typedef Documentation

◆ FSenseClass

Constructor & Destructor Documentation

◆ FAIActionEvent() [1/2]

FAIActionEvent::FAIActionEvent ( )
inline
TObjectPtr< AActor > OtherActor
Definition AISense_Actions.h:36
TObjectPtr< AActor > Broadcaster
Definition AISense_Actions.h:34
EAIActionType Action
Definition AISense_Actions.h:39

◆ FAIActionEvent() [2/2]

FAIActionEvent::FAIActionEvent ( AActor * Broadcaster,
AActor * OtherActor,
const FVector & TargetLocation,
const EAIActionType ActionType,
const float EventRangeMultiplier = 1.0f,
const float PassedInfoAge = 0.f,
const float InStrength = 1.f )
15: Location(TargetLocation), RangeMultiplier(EventRangeMultiplier), InformationAge(PassedInfoAge), Strength(InStrength), Broadcaster(Broadcaster), OtherActor(OtherActor), Action(ActionType)
16{
18 TeamIdentifier = FGenericTeamId::GetTeamIdentifier(Broadcaster);
19}
FORCEINLINE void CacheBroadcastLocation()
Definition AISense_Actions.h:46
float Strength
Definition AISense_Actions.h:31
FVector Location
Definition AISense_Actions.h:25
float RangeMultiplier
Definition AISense_Actions.h:28
float InformationAge
Definition AISense_Actions.h:30
FGenericTeamId TeamIdentifier
Definition AISense_Actions.h:26

Member Function Documentation

◆ CacheBroadcastLocation()

FORCEINLINE void FAIActionEvent::CacheBroadcastLocation ( )
inline
47 {
48 BroadcastLocation = Broadcaster ? Broadcaster->GetActorLocation() : FAISystem::InvalidLocation;
49 }
FVector BroadcastLocation
Definition AISense_Actions.h:56

◆ GetBroadcastLocation()

FORCEINLINE const FVector & FAIActionEvent::GetBroadcastLocation ( ) const
inline
51 {
52 return BroadcastLocation;
53 }

Member Data Documentation

◆ Action

EAIActionType FAIActionEvent::Action

◆ ActionName

FName FAIActionEvent::ActionName

◆ Broadcaster

TObjectPtr<AActor> FAIActionEvent::Broadcaster

◆ BroadcastLocation

FVector FAIActionEvent::BroadcastLocation
private

◆ InformationAge

float FAIActionEvent::InformationAge = 0.0f

◆ Location

FVector FAIActionEvent::Location

◆ OtherActor

TObjectPtr<AActor> FAIActionEvent::OtherActor

◆ RangeMultiplier

float FAIActionEvent::RangeMultiplier = 1.0f

◆ Strength

float FAIActionEvent::Strength = 1.0f

◆ TeamIdentifier

FGenericTeamId FAIActionEvent::TeamIdentifier

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