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

@@ -240,7 +240,9 @@ void GameWorldView::onFrame()
// Emit state update for header bar / build grid
emit stateUpdated(m_sim->currentTick(),
m_sim->buildingBlocksStock(),
m_gameSpeedMultiplier);
m_gameSpeedMultiplier,
m_sim->bossWaveCounter(),
m_sim->bossCountdownTicks());
// Game over check
if (m_sim->isGameOver() && !m_gameOverShown)
@@ -1390,7 +1392,9 @@ void GameWorldView::setGameSpeed(double multiplier)
m_gameSpeedMultiplier = multiplier;
emit stateUpdated(m_sim->currentTick(),
m_sim->buildingBlocksStock(),
m_gameSpeedMultiplier);
m_gameSpeedMultiplier,
m_sim->bossWaveCounter(),
m_sim->bossCountdownTicks());
}
void GameWorldView::resetForNewGame()