summaryrefslogtreecommitdiff
path: root/quacker/macondo.h
blob: 82505d503740e0ef02f060ab0abb00348e414601 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
#ifndef MACONDO_H
#define MACONDO_H

#include <QWidget>

class QPushButton;
class QTimer;
namespace Quackle {
	class Game;
	class Move;
}
class MacondoBackend;

class Macondo : public QWidget {
Q_OBJECT
public:
	Macondo(Quackle::Game *);
public slots:
	void simulate();
private slots:
	void gotSimMoves(const std::vector<Quackle::Move> &moves);
private:
	enum class Command {
		None,
		Simulate,
		Solve,
	};
	QPushButton *m_simulateButton;
	MacondoBackend *m_backend;
	int m_viewingPlyNumber = 0;
	Command m_command = Command::None;
};

#endif