balancing arenas can be started individually

This commit is contained in:
2026-05-03 20:33:33 +02:00
parent 426870158c
commit 55b42a03d9
6 changed files with 100 additions and 29 deletions

View File

@@ -0,0 +1,36 @@
#pragma once
#include <string>
#include <vector>
#include <QFrame>
#include <QLabel>
#include <QPushButton>
#include "ArenaSimulation.h"
class ArenaWidget : public QFrame
{
Q_OBJECT
public:
explicit ArenaWidget(const std::string& arenaName, QWidget* parent = nullptr);
void updateStatus(const ArenaStatus& status);
void startSimulation();
signals:
void startRequested();
private:
void buildLayout(const std::string& arenaName);
QLabel* m_titleLabel;
QLabel* m_team1Header;
QLabel* m_team2Header;
QLabel* m_team1Content;
QLabel* m_team2Content;
QPushButton* m_startButton;
bool m_running;
bool m_wasFinished;
};