summaryrefslogtreecommitdiff
path: root/quacker/macondo.h
diff options
context:
space:
mode:
authorpommicket <pommicket@gmail.com>2025-08-12 13:26:06 -0400
committerpommicket <pommicket@gmail.com>2025-08-12 13:26:06 -0400
commita1a21037c465a1a01b2ca13b70f89becfc93546e (patch)
tree2ab98ea347e8e6095a109b1dfe43670e39ea7bba /quacker/macondo.h
parentc197d84de85d4bc1f6ab9f9d3defebdd86820748 (diff)
add move box
Diffstat (limited to 'quacker/macondo.h')
-rw-r--r--quacker/macondo.h12
1 files changed, 9 insertions, 3 deletions
diff --git a/quacker/macondo.h b/quacker/macondo.h
index 82505d5..18441b5 100644
--- a/quacker/macondo.h
+++ b/quacker/macondo.h
@@ -7,18 +7,21 @@ class QPushButton;
class QTimer;
namespace Quackle {
class Game;
- class Move;
+ class MoveList;
}
class MacondoBackend;
-
+struct MacondoInitOptions;
+class MoveBox;
class Macondo : public QWidget {
Q_OBJECT
public:
Macondo(Quackle::Game *);
+ ~Macondo();
+ void setGame(Quackle::Game *);
public slots:
void simulate();
private slots:
- void gotSimMoves(const std::vector<Quackle::Move> &moves);
+ void gotSimMoves(const Quackle::MoveList &moves);
private:
enum class Command {
None,
@@ -26,9 +29,12 @@ private:
Solve,
};
QPushButton *m_simulateButton;
+ Quackle::Game *m_game;
MacondoBackend *m_backend;
int m_viewingPlyNumber = 0;
Command m_command = Command::None;
+ MoveBox *m_moveBox;
+ std::unique_ptr<MacondoInitOptions> initOptions;
};
#endif