Skip to main content

mechanics Folder

Folders Index

folderbounds

Level boundary behavior components and systems. More...

foldercombat
folderdamage
foldergamestate
folderhealth
folderinput
folderlifecycle
foldermatch
folderscoring
folderspawn
foldertiming

Files Index

filehelios/engine/mechanics/_module.ixx

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

fileengine/mechanics/registry.ixx

Component registration for all engine mechanics. More...

Description

helios::engine::mechanics

High-level gameplay mechanics and systems for game logic.

Overview

This module provides the core building blocks for implementing game mechanics. It contains components that store game state and systems that implement game rules according to the composition-over-inheritance principle.

Submodules

SubmodulePurpose
bounds/Level boundary behavior and response systems
combat/Weapon, shooting, attack tracking
damage/Damage dealing and damage application
health/Health tracking and death detection
lifecycle/Entity activation state (Active/Inactive tags)
scoring/Score pools, score values, and score tracking
spawn/Entity spawning and lifecycle management
input/Input processing systems (twin-stick controllers)

Key Components

ComponentPurpose
Active / InactiveTag components for entity activation state
HealthComponentTracks current/max health, alive status
DamageDealerComponentStores layer-based damage values
LastDamageComponentTracks last entity that dealt damage
SpawnedByProfileComponentLinks entity to spawn profile for pooling
EmittedByComponentTracks source entity (e.g., player → projectile)
ScoreValueComponentScore awarded when entity is defeated
ScorePoolComponentAssociates entity with a score pool

Key Systems

SystemPurpose
TwinStickInputSystemTranslates gamepad input to movement/aim commands
LevelBoundsSystemApplies bounce/wrap/despawn at level edges
HealthDepletedSystemDetects death and triggers death events
DamageApplicationSystemApplies damage from collision events


Generated via doxygen2docusaurus 2.0.0 by Doxygen 1.15.0.