From e43c01bd11560561daa771463c57442c3b8a761d Mon Sep 17 00:00:00 2001 From: pommicket Date: Tue, 12 Aug 2025 23:04:05 -0400 Subject: Integrate Macondo into move chooser --- quacker/macondobackend.h | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'quacker/macondobackend.h') diff --git a/quacker/macondobackend.h b/quacker/macondobackend.h index f61ae11..9d327d2 100644 --- a/quacker/macondobackend.h +++ b/quacker/macondobackend.h @@ -28,8 +28,11 @@ public: void simulate(const MacondoSimulateOptions &); ~MacondoBackend(); std::string getSimResults(); + inline bool isRunning() const { return m_command != Command::None; } + // stop current Macondo analysis + void stop(); signals: - void gotSimMoves(const Quackle::MoveList &moves); + void gotSimMoves(const Quackle::MoveList *moves); private slots: void processStarted(); void processFinished(int, QProcess::ExitStatus); @@ -47,6 +50,7 @@ private: std::string m_tempGCG; QProcess *m_process = nullptr; QTimer *m_updateTimer = nullptr; + // is simulation being run right now? (i.e. has process been started & game been loaded?) bool m_runningSimulation = false; Quackle::Game *m_game; QByteArray m_processOutput; -- cgit v1.2.3