components Folder
Files Index
| file | helios/engine/mechanics/combat/components/_module.ixx |
|
Aggregate module for helios::engine::mechanics::combat::components namespace. More... | |
| file | Aim2DComponent.ixx |
|
Component for handling 2D aiming direction. More... | |
| file | LastAttackerComponent.ixx |
|
Component for tracking the last entity that attacked this entity. More... | |
| file | ShootComponent.ixx |
|
Component for handling projectile shooting mechanics. More... | |
Description
helios::engine::mechanics::combat::components
Combat-specific components for aiming, shooting, and attack tracking.
These components implement high-level combat behaviors that coordinate between input, physics, and rendering systems.
Components
| Component | Description |
|---|---|
| Aim2DComponent | Stores 2D aim direction and fire frequency |
| ShootComponent | Manages projectile shooting with cooldown timer |
| LastAttackerComponent | Tracks the last entity that attacked this entity |
LastAttackerComponent
Stores an AttackContext containing:
- Source entity handle (the attacker)
- Contact point (where the attack landed)
- Damage applied
Used by HealthUpdateSystem to include attack context in DeathEvent for kill attribution and scoring.
Generated via doxygen2docusaurus 2.0.0 by Doxygen 1.15.0.