-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathplayerwrapper.h
More file actions
50 lines (43 loc) · 1.02 KB
/
playerwrapper.h
File metadata and controls
50 lines (43 loc) · 1.02 KB
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
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
#ifndef PLAYERWRAPPER_H
#define PLAYERWRAPPER_H
#include <QObject>
#include <QtCore>
#include "player.h"
class PlayerWrapper : public QObject
{
Q_OBJECT
public:
explicit PlayerWrapper(QObject *parent = 0);
~PlayerWrapper();
Player* getBlack();
Player* getCurrent();
Player* getLast();
Player* getNext();
Player* getWhite();
void setCurrentPlayer(PlayerColors player);
void swap();
void setCaptures(int captures);
void setCaptures(QString color, int captures);
void setHandicap(int h);
void setCurrentPass();
void setCurrentPlays();
bool getMutalPass();
QString getGameOver();
QString currentColor();
void setCurrentResigned();
bool currentIsHuman();
signals:
void blackScore(QString score);
void whiteScore(QString score);
public slots:
protected:
void writeSettings();
void readSettings();
QSettings config;
Player* white;
Player* black;
Player* current;
Player* last;
Player* next;
};
#endif // PLAYERWRAPPER_H