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

Configuration data for a single enemy spawn wave. More...

#include <EnemySpawnSystem.hpp>

+ Collaboration diagram for gme::SpawnWave:

Public Attributes

float spawnTime
 Time from level start when wave begins (seconds)
 
int basicEnemyCount
 Number of basic enemies to spawn in this wave.
 
int advancedEnemyCount
 Number of advanced enemies to spawn in this wave.
 
bool bossSpawn
 Whether this wave spawns a boss enemy.
 
float spawnInterval
 Time between individual enemy spawns within wave (seconds)
 
int spawnedCount
 Number of enemies already spawned from this wave (internal counter)
 

Detailed Description

Configuration data for a single enemy spawn wave.

Defines when and how many enemies spawn during a specific wave. Waves are triggered based on level time and can contain multiple enemy types including bosses. Each wave spawns enemies gradually over time using the spawn interval.

Definition at line 30 of file EnemySpawnSystem.hpp.

Member Data Documentation

◆ advancedEnemyCount

int gme::SpawnWave::advancedEnemyCount

Number of advanced enemies to spawn in this wave.

Definition at line 34 of file EnemySpawnSystem.hpp.

Referenced by gme::EnemySpawnSystem::initializeWaves(), and gme::EnemySpawnSystem::processWave().

◆ basicEnemyCount

int gme::SpawnWave::basicEnemyCount

Number of basic enemies to spawn in this wave.

Definition at line 33 of file EnemySpawnSystem.hpp.

Referenced by gme::EnemySpawnSystem::initializeWaves(), and gme::EnemySpawnSystem::processWave().

◆ bossSpawn

bool gme::SpawnWave::bossSpawn

Whether this wave spawns a boss enemy.

Definition at line 35 of file EnemySpawnSystem.hpp.

Referenced by gme::EnemySpawnSystem::initializeWaves(), and gme::EnemySpawnSystem::processWave().

◆ spawnedCount

int gme::SpawnWave::spawnedCount

Number of enemies already spawned from this wave (internal counter)

Definition at line 37 of file EnemySpawnSystem.hpp.

Referenced by gme::EnemySpawnSystem::initializeWaves(), and gme::EnemySpawnSystem::processWave().

◆ spawnInterval

float gme::SpawnWave::spawnInterval

Time between individual enemy spawns within wave (seconds)

Definition at line 36 of file EnemySpawnSystem.hpp.

Referenced by gme::EnemySpawnSystem::initializeWaves(), and gme::EnemySpawnSystem::processWave().

◆ spawnTime

float gme::SpawnWave::spawnTime

Time from level start when wave begins (seconds)

Definition at line 32 of file EnemySpawnSystem.hpp.

Referenced by gme::EnemySpawnSystem::initializeWaves().


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