Skip to main content

components Folder

Files Index

filehelios/engine/mechanics/health/components/_module.ixx

Module facade for health components. More...

fileHealthComponent.ixx

Component for tracking entity health. More...

Description

helios::engine::mechanics::health::components

Health-related ECS components.

Components

ComponentDescription
HealthComponentTracks current and maximum health, provides damage/heal methods

HealthComponent

Manages health state for an entity:

  • takeDamage(float) - Reduces health (clamped to 0)
  • heal(float) - Increases health (clamped to max)
  • isAlive() - Returns true if health > 0
  • reset() - Restores health to maximum

Health is automatically reset when the component is acquired from a pool.



Generated via doxygen2docusaurus 2.0.0 by Doxygen 1.15.0.