class
FAIStimulusBus
- Module
- AINavigation
- Header
#include "AINavigation/AIStimulusBus.h"- Namespace
Mowo
Properties
| Type | Name | Description |
|---|---|---|
static constexpr uint32_t | kCapacity | Default 512. |
static constexpr float | kDefaultLifetime | Default 1.0f. |
Constructors
| Signature | Name | Description |
|---|---|---|
FAIStimulusBus() | FAIStimulusBus |
Public functions
| Returns | Name | Description |
|---|---|---|
float | CellSize | |
uint64_t | CellKey | |
uint32_t | Emit | Stamps id and time and files the event; returns its id. |
void | Advance | Advances the clock, drops expired events and re-files the live ones. |
void | Clear | |
float | GetTime | |
uint32_t | GetLastId | |
uint32_t | GetLiveCount | |
uint64_t | GetOverwrittenCount | |
void | QueryStimuli | Live events of type newer than afterId whose position lies within radius of center. |
void | CollectSince | Every live event of type newer than afterId, wherever it is — the damage sense, which is keyed by victim rather than by place. |
float | GetMaxStrength | 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. |
float | GetMaxRadius | |
void | BeginPresence | |
void | AddPresence | |
void | QueryPresence | |
const FAIPresence* | FindPresence | |
uint32_t | GetPresenceCount | |
uint32_t | GetLastQueryCandidates | What 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() constGetLastId
C++
uint32_t GetLastId() constGetLiveCount
C++
uint32_t GetLiveCount() constGetOverwrittenCount
C++
uint64_t GetOverwrittenCount() constQueryStimuli
C++
void QueryStimuli(const Vec3& center, float radius, EAIStimulusType type, uint32_t afterId, std::vector<const FAIStimulus*>& out) constLive 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) constEvery 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) constThe 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) constBeginPresence
C++
void BeginPresence()AddPresence
C++
void AddPresence(const FAIPresence& presence)QueryPresence
C++
void QueryPresence(const Vec3& center, float radius, std::vector<const FAIPresence*>& out) constFindPresence
C++
const FAIPresence* FindPresence(EntityID entity) constGetPresenceCount
C++
uint32_t GetPresenceCount() constGetLastQueryCandidates
C++
uint32_t GetLastQueryCandidates() constWhat 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