summaryrefslogtreecommitdiff
path: root/quacker/macondo.h
blob: d8b2eb18ed7e71eea3c4aa2fb587d2e54c5c98df (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
#ifndef MACONDO_H
#define MACONDO_H

#include <QWidget>

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

class Macondo : public QWidget {
Q_OBJECT
public:
	Macondo(Quackle::Game *);
public slots:
	void simulate();
private:
	enum class Command {
		None,
		Simulate,
		Solve,
	};
	QPushButton *m_simulateButton;
	MacondoBackend *m_backend;
	int m_viewingPlyNumber = 0;
	Command m_command = Command::None;
};

#endif