class

FAIStimulusBus

Module
AINavigation
Header
#include "AINavigation/AIStimulusBus.h"
Namespace
Mowo

Properties

TypeNameDescription
static constexpr uint32_tkCapacityDefault 512.
static constexpr floatkDefaultLifetimeDefault 1.0f.

Constructors

SignatureNameDescription
FAIStimulusBus()FAIStimulusBus

Public functions

ReturnsNameDescription
floatCellSize
uint64_tCellKey
uint32_tEmitStamps id and time and files the event; returns its id.
voidAdvanceAdvances the clock, drops expired events and re-files the live ones.
voidClear
floatGetTime
uint32_tGetLastId
uint32_tGetLiveCount
uint64_tGetOverwrittenCount
voidQueryStimuliLive events of type newer than afterId whose position lies within radius of center.
voidCollectSinceEvery live event of type newer than afterId, wherever it is — the damage sense, which is keyed by victim rather than by place.
floatGetMaxStrengthThe largest strength and explicit radius among live events of a type, so a perceiver can size its query to the loudest thing that happened.
floatGetMaxRadius
voidBeginPresence
voidAddPresence
voidQueryPresence
const FAIPresence*FindPresence
uint32_tGetPresenceCount
uint32_tGetLastQueryCandidatesWhat the last query had to look at — how a test tells a hash lookup from a scan of the world.

Function details

FAIStimulusBus

C++
FAIStimulusBus()

CellSize

C++
static float CellSize()

CellKey

C++
static uint64_t CellKey(const Vec3& position)

Emit

C++
uint32_t Emit(const FAIStimulus& stimulus)

Stamps id and time and files the event; returns its id.

Advance

C++
void Advance(float deltaTime)

Advances the clock, drops expired events and re-files the live ones.

Clear

C++
void Clear()

GetTime

C++
float GetTime() const

GetLastId

C++
uint32_t GetLastId() const

GetLiveCount

C++
uint32_t GetLiveCount() const

GetOverwrittenCount

C++
uint64_t GetOverwrittenCount() const

QueryStimuli

C++
void QueryStimuli(const Vec3& center, float radius, EAIStimulusType type, uint32_t afterId, std::vector<const FAIStimulus*>& out) const

Live events of type newer than afterId whose position lies within radius of center.

CollectSince

C++
void CollectSince(EAIStimulusType type, uint32_t afterId, std::vector<const FAIStimulus*>& out) const

Every live event of type newer than afterId, wherever it is — the damage sense, which is keyed by victim rather than by place.

GetMaxStrength

C++
float GetMaxStrength(EAIStimulusType type) const

The largest strength and explicit radius among live events of a type, so a perceiver can size its query to the loudest thing that happened.

GetMaxRadius

C++
float GetMaxRadius(EAIStimulusType type) const

BeginPresence

C++
void BeginPresence()

AddPresence

C++
void AddPresence(const FAIPresence& presence)

QueryPresence

C++
void QueryPresence(const Vec3& center, float radius, std::vector<const FAIPresence*>& out) const

FindPresence

C++
const FAIPresence* FindPresence(EntityID entity) const

GetPresenceCount

C++
uint32_t GetPresenceCount() const

GetLastQueryCandidates

C++
uint32_t GetLastQueryCandidates() const

What the last query had to look at — how a test tells a hash lookup from a scan of the world.

Generated from AINavigation/AIStimulusBus.h via ainavigation.json · Oct 27, 2026Version 1.0.0