mechanics Folder
Folders Index
| folder | bounds |
|
Level boundary behavior components and systems. More... | |
| folder | combat |
| folder | damage |
| folder | gamestate |
| folder | health |
| folder | input |
| folder | lifecycle |
| folder | match |
| folder | scoring |
| folder | spawn |
| folder | timing |
Files Index
| file | helios/engine/mechanics/_module.ixx |
|
Aggregate module for helios::engine::mechanics namespace. More... | |
| file | engine/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
| Submodule | Purpose |
|---|---|
| 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
| Component | Purpose |
|---|---|
| Active / Inactive | Tag components for entity activation state |
| HealthComponent | Tracks current/max health, alive status |
| DamageDealerComponent | Stores layer-based damage values |
| LastDamageComponent | Tracks last entity that dealt damage |
| SpawnedByProfileComponent | Links entity to spawn profile for pooling |
| EmittedByComponent | Tracks source entity (e.g., player → projectile) |
| ScoreValueComponent | Score awarded when entity is defeated |
| ScorePoolComponent | Associates entity with a score pool |
Key Systems
| System | Purpose |
|---|---|
| TwinStickInputSystem | Translates gamepad input to movement/aim commands |
| LevelBoundsSystem | Applies bounce/wrap/despawn at level edges |
| HealthDepletedSystem | Detects death and triggers death events |
| DamageApplicationSystem | Applies damage from collision events |
Generated via doxygen2docusaurus 2.0.0 by Doxygen 1.15.0.