r-type  0.0.0
R-Type main
Loading...
Searching...
No Matches
gme::Wave Struct Reference

Complete wave configuration containing multiple enemy spawns. More...

#include <WaveManager.hpp>

+ Collaboration diagram for gme::Wave:

Public Attributes

int waveNumber
 Wave sequence number (1-based)
 
std::vector< EnemySpawnenemies
 List of all enemies to spawn in this wave.
 
float duration
 Maximum duration in seconds before next wave (if not waitForClear)
 
bool waitForClear
 If true, next wave starts only when all enemies are destroyed.
 
std::function< void()> onComplete
 Optional callback function invoked when wave completes.
 

Detailed Description

Complete wave configuration containing multiple enemy spawns.

Defines a complete enemy wave including all enemies to spawn, timing parameters, completion conditions, and optional callbacks. Waves can either advance based on time duration or wait for all enemies to be eliminated.

Definition at line 45 of file WaveManager.hpp.

Member Data Documentation

◆ duration

float gme::Wave::duration

◆ enemies

◆ onComplete

std::function<void()> gme::Wave::onComplete

Optional callback function invoked when wave completes.

Definition at line 51 of file WaveManager.hpp.

Referenced by gme::WaveManager::update().

◆ waitForClear

bool gme::Wave::waitForClear

◆ waveNumber


The documentation for this struct was generated from the following file: