Skip to main content

components Folder

Files Index

filehelios/engine/modules/ai/components/_module.ixx

Aggregate module for helios::engine::modules::ai::components namespace. More...

fileChaseComponent.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

ComponentPurpose
ChaseComponentTracks a target entity and controls pursuit timing

ChaseComponent

Stores data for chase/pursuit behavior:

PropertyTypePurpose
target_EntityHandleHandle of the entity to chase
cooldown_floatInterval between direction updates (seconds)
cooldownTimer_floatElapsed 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

ModulePurpose
helios.engine.modules.ai.systemsChaseSystem processes this component
helios.util.GuidTarget identification


Generated via doxygen2docusaurus 2.0.0 by Doxygen 1.15.0.