#include <AIPerceptionComponent.h>
◆ FActorPerceptionInfo()
| FActorPerceptionInfo::FActorPerceptionInfo |
( |
AActor * |
InTarget = nullptr | ) |
|
|
inlineexplicit |
◆ GetLastStimulusLocation()
| FVector FActorPerceptionInfo::GetLastStimulusLocation |
( |
float * |
OptionalAge = nullptr | ) |
const |
|
inline |
Retrieves last known location. Active (last reported as "successful") stimuli are preferred.
◆ GetReceiverLocation()
Retrieves receiver location of the last sense stimuli for a given sense
- Parameters
-
| Sense | The AISenseID of the sense |
- Returns
- Location of the receiver for the last sensed stimuli or FAISystem::InvalidLocation if given sense has never registered related Target actor or last stimuli has expired.
◆ GetStimulusLocation()
Retrieves location of the last sensed stimuli for a given sense
- Parameters
-
| Sense | The AISenseID of the sense |
- Returns
- Location of the last sensed stimuli or FAISystem::InvalidLocation if given sense has never registered related Target actor or if last stimuli has expired.
◆ HasAnyCurrentStimulus()
| bool FActorPerceptionInfo::HasAnyCurrentStimulus |
( |
| ) |
const |
|
inline |
Indicates currently live (visible) stimulus from any sense
◆ HasAnyKnownStimulus()
| bool FActorPerceptionInfo::HasAnyKnownStimulus |
( |
| ) |
const |
|
inline |
it includes both currently live (visible) stimulus, as well as "remembered" ones
◆ HasKnownStimulusOfSense()
| bool FActorPerceptionInfo::HasKnownStimulusOfSense |
( |
const FAISenseID |
Sense | ) |
const |
|
inline |
Indicates a currently active or "remembered" stimuli for a given sense
- Parameters
-
| Sense | The AISenseID of the sense |
- Returns
- True if a target has been registered (even if not currently sensed) for the given sense and the stimuli is not expired.
◆ IsSenseActive()
| bool FActorPerceptionInfo::IsSenseActive |
( |
const FAISenseID |
Sense | ) |
const |
|
inline |
Indicates a currently active stimuli for a given sense
- Parameters
-
| Sense | The AISenseID of the sense |
- Returns
- True if a target is still sensed for the given sense and the stimuli is not expired.
◆ Merge()
takes all "newer" info from Other and absorbs it
◆ bIsFriendly
| uint32 FActorPerceptionInfo::bIsFriendly |
indicates whether this Actor is friendly to perception holder
◆ bIsHostile
| uint32 FActorPerceptionInfo::bIsHostile |
indicates whether this Actor is hostile to perception holder
◆ DominantSense
if != MAX indicates the sense that takes precedence over other senses when it comes to determining last stimulus location
◆ LastSensedStimuli
◆ Target
The documentation for this struct was generated from the following files: