show accumulated threat for teams in balancing target

This commit is contained in:
2026-06-17 21:17:45 +02:00
parent 1a682fdb79
commit 7f4ea93a70
7 changed files with 43 additions and 1 deletions

View File

@@ -40,6 +40,7 @@ struct ArenaStatus
struct TeamStatus
{
std::string name;
double threatLevel = 0.0; // accumulated threat of the team's configured ships
std::vector<Entry> entries; // HQ first, then ships, then stations
};
@@ -108,6 +109,9 @@ private:
int m_winnerTeam;
std::atomic<bool> m_stopRequested;
// Static accumulated threat per team, computed once from the configured roster.
double m_teamThreat[2] = {0.0, 0.0};
std::vector<WeaponFiredEvent> m_weaponFiredEvents;
mutable std::mutex m_statusMutex;