diff options
author | pommicket <pommicket@gmail.com> | 2025-08-12 23:04:05 -0400 |
---|---|---|
committer | pommicket <pommicket@gmail.com> | 2025-08-12 23:04:05 -0400 |
commit | e43c01bd11560561daa771463c57442c3b8a761d (patch) | |
tree | a040ea23eaf10d8a7362f523777a8b61e8b55041 /quacker/macondobackend.h | |
parent | a1a21037c465a1a01b2ca13b70f89becfc93546e (diff) |
Integrate Macondo into move chooser
Diffstat (limited to 'quacker/macondobackend.h')
-rw-r--r-- | quacker/macondobackend.h | 6 |
1 files changed, 5 insertions, 1 deletions
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; |