diff options
author | pommicket <pommicket@gmail.com> | 2025-08-08 10:04:16 -0400 |
---|---|---|
committer | pommicket <pommicket@gmail.com> | 2025-08-08 10:04:16 -0400 |
commit | 91af6685bdbfad63a035bb7997a8f3d2eb20d64a (patch) | |
tree | 574d024d1acd59ec91e63821b8ceeb9d0416095f /quacker/macondo.h | |
parent | ac2586a851f8c5aa30d77274f441282c29e9e56d (diff) |
simulate
Diffstat (limited to 'quacker/macondo.h')
-rw-r--r-- | quacker/macondo.h | 13 |
1 files changed, 10 insertions, 3 deletions
diff --git a/quacker/macondo.h b/quacker/macondo.h index d72a03d..b8dbf73 100644 --- a/quacker/macondo.h +++ b/quacker/macondo.h @@ -14,18 +14,25 @@ public: Macondo(TopLevel *topLevel); ~Macondo(); public slots: - void run(); + void simulate(); void updateResults(); void processStarted(); void processFinished(int, QProcess::ExitStatus); virtual void positionChanged(const Quackle::GamePosition *position); private: + enum class Command { + None, + Simulate, + Solve, + }; void loadGCG(); void killProcess(); TopLevel *m_topLevel; - QPushButton *m_runButton; + QPushButton *m_simulateButton; QTimer *m_updateTimer; std::string m_execPath; QProcess *m_process = nullptr; - int plyNumber = 0; + int m_viewingPlyNumber = 0; + bool m_runningSimulation = false; + Command m_command = Command::None; }; |