class
FCoverSystem
- Module
- AINavigation
- Header
#include "AINavigation/CoverSystem.h"- Namespace
Mowo
Public functions
| Returns | Name | Description |
|---|---|---|
SystemPhase | GetPhase | |
void | Initialize | |
void | Update | |
void | Shutdown | |
int32_t | GenerateFromStaticGeometry | Samples every static box at once. |
bool | IsGenerating | |
void | ClearGeneratedPoints | |
int32_t | FindBestCover | |
bool | Reserve | |
void | Release | |
void | ReleaseFor | |
int32_t | GetReservationFor | |
const FCoverPoint* | GetPoint | |
const std::vector<FCoverPoint>& | GetPoints | |
int32_t | CountPointsNear | |
bool | IsPointProtectedFrom | |
float | GetSampleSpacing | |
void | SetSampleSpacing | |
void | DebugDrawCover | |
void | RegisterBehaviorTreeTasks |
Function details
GetPhase
C++
SystemPhase GetPhase() const overrideInitialize
C++
void Initialize(World* world) overrideUpdate
C++
void Update(float deltaTime) overrideShutdown
C++
void Shutdown() overrideGenerateFromStaticGeometry
C++
int32_t GenerateFromStaticGeometry()Samples every static box at once. The system itself generates in slices (BeginGeneration, then StepGeneration each Update), so a large level never spends one frame on it.
IsGenerating
C++
bool IsGenerating() constClearGeneratedPoints
C++
void ClearGeneratedPoints()FindBestCover
C++
int32_t FindBestCover(const Vec3& agentPos, const Vec3& threatPos, float maxDistance, EntityID agent) constReserve
C++
bool Reserve(int32_t pointId, EntityID agent, const Vec3& threatPos)Release
C++
void Release(int32_t pointId)ReleaseFor
C++
void ReleaseFor(EntityID agent)GetReservationFor
C++
int32_t GetReservationFor(EntityID agent) constGetPoint
C++
const FCoverPoint* GetPoint(int32_t pointId) constGetPoints
C++
const std::vector<FCoverPoint>& GetPoints() constCountPointsNear
C++
int32_t CountPointsNear(const Vec3& position, float radius) constIsPointProtectedFrom
C++
bool IsPointProtectedFrom(const FCoverPoint& point, const Vec3& threatPos) constGetSampleSpacing
C++
float GetSampleSpacing() constSetSampleSpacing
C++
void SetSampleSpacing(float spacing)DebugDrawCover
C++
static void DebugDrawCover(World* world)RegisterBehaviorTreeTasks
C++
static void RegisterBehaviorTreeTasks()Generated from AINavigation/CoverSystem.h via ainavigation.json · Oct 27, 2026Version 1.0.0