ChaseComponent.ixx File
Component for AI chase/seek behavior. More...
Included Headers
#include <cassert>
#include <helios.engine.ecs.EntityHandle>
#include <helios.util.Guid>
#include <helios.core.types>
Namespaces Index
| namespace | helios |
| namespace | engine |
|
Main engine module aggregating core infrastructure and game systems. More... | |
| namespace | modules |
|
Domain-specific components and systems. More... | |
| namespace | ai |
|
AI behavior modules for game entities. More... | |
| namespace | components |
|
AI behavior data components. More... | |
Classes Index
| class | ChaseComponent |
|
Component storing chase behavior data. More... | |
Description
Component for AI chase/seek behavior.
File Listing
The file content with the documentation metadata removed is:
18export namespace helios::engine::modules::ai::components {
27 class ChaseComponent {
42 helios::engine::ecs::EntityHandle target_{};
77 ChaseComponent() = default;
79 ChaseComponent(const ChaseComponent& other) :
81 ChaseComponent& operator=(const ChaseComponent&) = default;
82 ChaseComponent(ChaseComponent&&) noexcept = default;
83 ChaseComponent& operator=(ChaseComponent&&) noexcept = default;
108 void setCooldown(const float cooldown) noexcept {
109 cooldown_ = cooldown;
117 [[nodiscard]] float cooldownTimer() const noexcept {
126 void updateCooldownTimerBy(const float delta) noexcept {
135 void setCooldownTimer(const float timer) noexcept {
144 void setTarget(const helios::engine::ecs::EntityHandle& entityHandle) noexcept {
Generated via doxygen2docusaurus 2.0.0 by Doxygen 1.15.0.