add boss wave counter and countdown to the title bar
This commit is contained in:
@@ -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 =
|
||||
|
||||
@@ -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;
|
||||
|
||||
@@ -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
|
||||
// ---------------------------------------------------------------------------
|
||||
|
||||
@@ -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
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user