Skip to main content

components Folder

Files Index

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

Aggregate module for helios::engine::mechanics::combat::components namespace. More...

fileAim2DComponent.ixx

Component for handling 2D aiming direction. More...

fileLastAttackerComponent.ixx

Component for tracking the last entity that attacked this entity. More...

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

ComponentDescription
Aim2DComponentStores 2D aim direction and fire frequency
ShootComponentManages projectile shooting with cooldown timer
LastAttackerComponentTracks 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.