allow to inspect balancing arena
This commit is contained in:
@@ -14,6 +14,9 @@
|
||||
#include "ArenaSimulation.h"
|
||||
#include "BalancingConfig.h"
|
||||
#include "GameConfig.h"
|
||||
#include "VisualsConfig.h"
|
||||
|
||||
class InspectWindow;
|
||||
|
||||
class BalancingWindow : public QWidget
|
||||
{
|
||||
@@ -32,11 +35,14 @@ private slots:
|
||||
void reloadConfig();
|
||||
void startAll();
|
||||
void startArena(int index);
|
||||
void inspectArena(int index);
|
||||
void closeInspectWindow();
|
||||
|
||||
private:
|
||||
void populateArenas(const BalancingConfig& balancingConfig);
|
||||
void stopAllArenas();
|
||||
void updateButtons();
|
||||
void setMainControlsEnabled(bool enabled);
|
||||
|
||||
struct ArenaEntry
|
||||
{
|
||||
@@ -48,6 +54,7 @@ private:
|
||||
|
||||
std::vector<ArenaEntry> m_arenas;
|
||||
GameConfig m_gameConfig;
|
||||
VisualsConfig m_visuals;
|
||||
std::string m_configDir;
|
||||
std::string m_balancingConfigPath;
|
||||
unsigned int m_nextSeed;
|
||||
@@ -55,4 +62,8 @@ private:
|
||||
QPushButton* m_startAllButton;
|
||||
QScrollArea* m_scrollArea;
|
||||
QTimer* m_pollTimer;
|
||||
|
||||
InspectWindow* m_inspectWindow;
|
||||
int m_inspectedArenaIndex;
|
||||
std::unique_ptr<ArenaSimulation> m_inspectedSim;
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user