add boss wave counter and countdown to the title bar

This commit is contained in:
2026-06-03 22:44:56 +02:00
parent b5185b0906
commit 15d8fa4f2c
9 changed files with 54 additions and 6 deletions

View File

@@ -532,6 +532,16 @@ double Simulation::threatLevel() const
return m_waveSystem->threatLevel();
}
int Simulation::bossWaveCounter() const
{
return m_waveSystem->bossWaveCounter();
}
Tick Simulation::bossCountdownTicks() const
{
return m_waveSystem->bossCountdownTicks();
}
int Simulation::schematicLevel(const std::string& shipId) const
{
const std::map<std::string, SchematicState>::const_iterator it =

View File

@@ -57,6 +57,8 @@ public:
int buildingBlocksStock() const;
bool isGameOver() const;
double threatLevel() const;
int bossWaveCounter() const;
Tick bossCountdownTicks() const;
// Schematic state queries.
int schematicLevel(const std::string& shipId) const;

View File

@@ -100,6 +100,16 @@ int WaveSystem::generation() const
return m_generation;
}
int WaveSystem::bossWaveCounter() const
{
return m_bossWaveCounter;
}
Tick WaveSystem::bossCountdownTicks() const
{
return m_bossCountdownTicks;
}
// ---------------------------------------------------------------------------
// Private helpers
// ---------------------------------------------------------------------------

View File

@@ -40,6 +40,12 @@ public:
// incremented by 1 after each push — REQ-PSH-STATION-STATS).
int generation() const;
// Boss wave counter (REQ-WAV-BOSS-COUNTER): current cycle number, starts at 1.
int bossWaveCounter() const;
// Ticks remaining until the next boss wave fires (REQ-WAV-BOSS-COUNTDOWN).
Tick bossCountdownTicks() const;
private:
struct SpawnEntry
{