Skip to main content

behavior Folder

Folders Index

folderinitializers
folderplacements

Files Index

filehelios/engine/runtime/spawn/behavior/_module.ixx

Aggregate module for helios::engine::runtime::spawn::behavior namespace. More...

fileSpawnInitializer.ixx

Abstract interface for initializing spawned entity state. More...

fileSpawnPlacer.ixx

Abstract interface for determining spawn positions. More...

Description

helios::engine::runtime::spawn::behavior

Spawn behavior strategies for positioning and initializing entities.

Overview

This module provides the behavior layer for the spawn system. It defines abstract interfaces and concrete implementations for determining where entities spawn and how they are initialized.

Key Classes

ClassPurpose
SpawnPlacerAbstract interface for calculating spawn positions
SpawnInitializerAbstract interface for configuring spawned entity state

Submodules

DirectoryPurpose
placements/Concrete SpawnPlacer implementations
initializers/Concrete SpawnInitializer implementations

Available Placers

PlacerDescription
RandomSpawnPlacerPlaces entities at random positions within level bounds
EmitterSpawnPlacerPlaces entities relative to an emitter position

Available Initializers

InitializerDescription
EmitterInitializerInherits velocity/direction from emitter
RandomDirectionInitializerApplies random velocity within constraints

Usage

 auto profile = std::make_unique<SpawnProfile>(SpawnProfile{
  .gameObjectPoolId = enemyPoolId,
  .spawnPlacer = std::make_unique<RandomSpawnPlacer>(),
  .spawnInitializer = std::make_unique<RandomDirectionInitializer>(minSpeed, maxSpeed)
 });


Generated via doxygen2docusaurus 2.0.0 by Doxygen 1.15.0.