summaryrefslogtreecommitdiff
path: root/quacker/macondo.h
diff options
context:
space:
mode:
authorpommicket <pommicket@gmail.com>2025-08-07 23:28:56 -0400
committerpommicket <pommicket@gmail.com>2025-08-07 23:28:56 -0400
commitac2586a851f8c5aa30d77274f441282c29e9e56d (patch)
tree295a3afb21135bffa72aab2603731039908a66d9 /quacker/macondo.h
parentaf95032f803d6e74e704aa4ed9aafad71f389f4f (diff)
give turn number to macondo
Diffstat (limited to 'quacker/macondo.h')
-rw-r--r--quacker/macondo.h17
1 files changed, 11 insertions, 6 deletions
diff --git a/quacker/macondo.h b/quacker/macondo.h
index 2490e2f..d72a03d 100644
--- a/quacker/macondo.h
+++ b/quacker/macondo.h
@@ -1,26 +1,31 @@
+#include <QProcess>
#include <QWidget>
-#include "game.h"
+
+#include "view.h"
+
class QPushButton;
-class QProcess;
class QTimer;
class TopLevel;
-class Macondo : public QWidget {
+class Macondo : public View {
Q_OBJECT
public:
Macondo(TopLevel *topLevel);
+ ~Macondo();
public slots:
void run();
void updateResults();
void processStarted();
- void movesUpdated(Quackle::MoveList *moves);
- inline void setGame(Quackle::Game *game) { m_game = game; }
+ void processFinished(int, QProcess::ExitStatus);
+ virtual void positionChanged(const Quackle::GamePosition *position);
private:
+ void loadGCG();
+ void killProcess();
TopLevel *m_topLevel;
QPushButton *m_runButton;
QTimer *m_updateTimer;
std::string m_execPath;
QProcess *m_process = nullptr;
- Quackle::Game *m_game = nullptr;
+ int plyNumber = 0;
};