载入中...
搜索中...
未找到
WaveDirector.h
浏览该文件的文档.
104 void emitLifecycle(WaveAdvanceResult& out, std::string kind, std::string waveId, int waveIndex, int rewardGold,
Move-only, checked operation results for the common layer.
Lives / leak counter for a defended base.
Definition WaveDirector.h:120
bool isDefeated() const noexcept
Definition WaveDirector.h:126
Script module factory for tower-defense schedule helpers.
Definition WaveDirector.h:138
Module_REG(TowerDefense)
~TowerDefense() override=default
TowerDefense()=default
Deterministic wave / creep spawn schedule.
Definition WaveDirector.h:73
int waveCount() const noexcept
Number of registered waves in schedule order.
Definition WaveDirector.h:82
int waveIndex() const noexcept
Index of the active/next wave, or waveCount when completed.
Definition WaveDirector.h:88
double remainingPrepSeconds() const noexcept
Remaining preparation/between-wave seconds.
Definition WaveDirector.h:90
Definition WaveDirector.cpp:13
@ Completed
@ BetweenWaves
@ Spawning
@ Preparing
std::vector< WaveSpawnEvent > spawns
Definition WaveDirector.h:63
std::vector< WaveLifecycleEvent > events
Definition WaveDirector.h:64
std::vector< WaveEntry > entries
Definition WaveDirector.h:27
One phase/reward event emitted by advance().
Definition WaveDirector.h:51
One deterministic spawn request emitted by advance().
Definition WaveDirector.h:41