components Folder
Files Index
| file | helios/engine/modules/ai/components/_module.ixx |
|
Aggregate module for helios::engine::modules::ai::components namespace. More... | |
| file | ChaseComponent.ixx |
|
Component for AI chase/seek behavior. More... | |
Description
helios::engine::modules::ai::components
AI behavior data components.
Overview
Components storing AI behavior state. These are pure data containers processed by the corresponding systems in helios.engine.modules.ai.systems.
Components
| Component | Purpose |
|---|---|
| ChaseComponent | Tracks a target entity and controls pursuit timing |
ChaseComponent
Stores data for chase/pursuit behavior:
| Property | Type | Purpose |
|---|---|---|
| target_ | EntityHandle | Handle of the entity to chase |
| cooldown_ | float | Interval between direction updates (seconds) |
| cooldownTimer_ | float | Elapsed time since last update |
API
// Set target entity
void setTarget(EntityHandle handle);
EntityHandle target() const;
// Configure update frequency
void setCooldown(float seconds);
float cooldown() const;
// Timer management (used by ChaseSystem)
void updateCooldownTimerBy(float delta);
void setCooldownTimer(float timer);
float cooldownTimer() const;
Related Modules
| Module | Purpose |
|---|---|
| helios.engine.modules.ai.systems | ChaseSystem processes this component |
| helios.util.Guid | Target identification |
Generated via doxygen2docusaurus 2.0.0 by Doxygen 1.15.0.