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

Definition of a single enemy spawn within a wave. More...

#include <WaveManager.hpp>

+ Collaboration diagram for gme::EnemySpawn:

Public Attributes

ServerEntityType type
 Type of enemy to spawn (ENEMY_BASIC, ENEMY_ADVANCED, or BOSS)
 
float x
 Spawn X position (typically off-screen right)
 
float y
 Spawn Y position (vertical placement on screen)
 
float health
 Initial health points for this enemy.
 
float spawnDelay
 Delay in seconds from wave start before spawning this enemy.
 

Detailed Description

Definition of a single enemy spawn within a wave.

Specifies all parameters needed to spawn an enemy including type, position, health, and timing. Multiple EnemySpawn instances make up a complete wave.

Definition at line 29 of file WaveManager.hpp.

Member Data Documentation

◆ health

float gme::EnemySpawn::health

Initial health points for this enemy.

Definition at line 34 of file WaveManager.hpp.

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

◆ spawnDelay

float gme::EnemySpawn::spawnDelay

Delay in seconds from wave start before spawning this enemy.

Definition at line 35 of file WaveManager.hpp.

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

◆ type

ServerEntityType gme::EnemySpawn::type

Type of enemy to spawn (ENEMY_BASIC, ENEMY_ADVANCED, or BOSS)

Definition at line 31 of file WaveManager.hpp.

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

◆ x

float gme::EnemySpawn::x

Spawn X position (typically off-screen right)

Definition at line 32 of file WaveManager.hpp.

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

◆ y

float gme::EnemySpawn::y

Spawn Y position (vertical placement on screen)

Definition at line 33 of file WaveManager.hpp.

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


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