From a1a21037c465a1a01b2ca13b70f89becfc93546e Mon Sep 17 00:00:00 2001 From: pommicket Date: Tue, 12 Aug 2025 13:26:06 -0400 Subject: add move box --- quacker/macondobackend.h | 28 +++++++++++++++------------- 1 file changed, 15 insertions(+), 13 deletions(-) (limited to 'quacker/macondobackend.h') diff --git a/quacker/macondobackend.h b/quacker/macondobackend.h index 6e88521..f61ae11 100644 --- a/quacker/macondobackend.h +++ b/quacker/macondobackend.h @@ -6,29 +6,31 @@ namespace Quackle { class Game; class Move; + class MoveList; } class QTimer; +struct MacondoInitOptions { + inline MacondoInitOptions(std::string execPath) { + this->execPath = execPath; + } + std::string execPath; +}; +struct MacondoSimulateOptions { + inline MacondoSimulateOptions() {} +}; + class MacondoBackend: public QObject { Q_OBJECT public: - struct InitOptions { - inline InitOptions(std::string execPath) { - this->execPath = execPath; - } - std::string execPath; - }; - MacondoBackend(Quackle::Game *game, const InitOptions &); - struct SimulateOptions { - inline SimulateOptions() {} - }; - void simulate(const SimulateOptions &); + MacondoBackend(Quackle::Game *game, const MacondoInitOptions &); + void simulate(const MacondoSimulateOptions &); ~MacondoBackend(); std::string getSimResults(); signals: - void gotSimMoves(const std::vector &moves); -protected slots: + void gotSimMoves(const Quackle::MoveList &moves); +private slots: void processStarted(); void processFinished(int, QProcess::ExitStatus); void timer(); -- cgit v1.2.3