show accumulated threat for teams in balancing target
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user