-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathplayer.h
More file actions
58 lines (50 loc) · 1.13 KB
/
Copy pathplayer.h
File metadata and controls
58 lines (50 loc) · 1.13 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
51
52
53
54
55
56
57
58
#ifndef PLAYER_H
#define PLAYER_H
#include <QObject>
#include <QtCore>
enum PlayerColors{
Black,
White
};
class Player : public QObject
{
Q_OBJECT
public:
explicit Player(QObject *parent = 0);
bool doHints();
int getCaptures();
QString getColorString();
int getHandicap();
qreal getKomi();
QString getName();
PlayerColors getPlayerColor();
QString getSpecies();
void setCaptures(int capt);
void setDoHints(bool do_hints);
void setHandicap(int handicap);
void setKomi(qreal komi);
void setName(QString name);
void setColor(PlayerColors color);
void setColor(QString color);
void setSpecies(QString species);
void reset();
void setIsPassing(bool p);
bool getIsPassing();
void setResigned(bool r);
bool getResigned();
signals:
public slots:
private:
bool do_hints = false;
bool is_passing = false;
bool has_resigned = false;
enum PlayerColors color;
QString color_string;
int captures = 0;
int handicap = 0;
qreal komi_value;
QString name;
QString score;
QString species;
};
#endif // PLAYER_H