diff options
author | pommicket <pommicket@gmail.com> | 2025-08-12 13:26:06 -0400 |
---|---|---|
committer | pommicket <pommicket@gmail.com> | 2025-08-12 13:26:06 -0400 |
commit | a1a21037c465a1a01b2ca13b70f89becfc93546e (patch) | |
tree | 2ab98ea347e8e6095a109b1dfe43670e39ea7bba /quacker/macondobackend.h | |
parent | c197d84de85d4bc1f6ab9f9d3defebdd86820748 (diff) |
add move box
Diffstat (limited to 'quacker/macondobackend.h')
-rw-r--r-- | quacker/macondobackend.h | 28 |
1 files changed, 15 insertions, 13 deletions
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<Quackle::Move> &moves); -protected slots: + void gotSimMoves(const Quackle::MoveList &moves); +private slots: void processStarted(); void processFinished(int, QProcess::ExitStatus); void timer(); |