diff options
author | pommicket <pommicket@gmail.com> | 2025-08-07 21:56:29 -0400 |
---|---|---|
committer | pommicket <pommicket@gmail.com> | 2025-08-07 21:56:29 -0400 |
commit | af95032f803d6e74e704aa4ed9aafad71f389f4f (patch) | |
tree | aa90483fb8e072f3ef8198c4330dfd35f3566ea7 /quacker/macondo.h | |
parent | 0b60755eb7c38ae2995690f57ce405b5f0052f0f (diff) |
send position to macondo
Diffstat (limited to 'quacker/macondo.h')
-rw-r--r-- | quacker/macondo.h | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/quacker/macondo.h b/quacker/macondo.h index e6eb749..2490e2f 100644 --- a/quacker/macondo.h +++ b/quacker/macondo.h @@ -1,20 +1,26 @@ #include <QWidget> +#include "game.h" class QPushButton; class QProcess; class QTimer; +class TopLevel; class Macondo : public QWidget { Q_OBJECT public: - explicit Macondo(QWidget *parent = 0); + Macondo(TopLevel *topLevel); public slots: void run(); void updateResults(); void processStarted(); + void movesUpdated(Quackle::MoveList *moves); + inline void setGame(Quackle::Game *game) { m_game = game; } private: + TopLevel *m_topLevel; QPushButton *m_runButton; QTimer *m_updateTimer; std::string m_execPath; QProcess *m_process = nullptr; + Quackle::Game *m_game = nullptr; }; |