-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathplayer.cpp
More file actions
151 lines (118 loc) · 1.85 KB
/
Copy pathplayer.cpp
File metadata and controls
151 lines (118 loc) · 1.85 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
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
#include "player.h"
Player::Player(QObject *parent) : QObject(parent)
{
}
Player::Player(QString name, QObject *parent) : Player(parent)
{
m_name = name;
}
void Player::setName(QString name)
{
m_name = name;
}
QString Player::getName()
{
return m_name;
}
void Player::setRole(Role role)
{
m_role = role;
}
Player::Role Player::getRole()
{
return m_role;
}
void Player::setType(Type type)
{
m_type = type;
}
Player::Type Player::getType()
{
return m_type;
}
void Player::setScore(int score)
{
m_score = score;
}
int Player::getScore()
{
return m_score;
}
void Player::setWin(bool flag)
{
m_isWin = flag;
}
bool Player::isWin()
{
return m_isWin;
}
void Player::setPrevPlayer(Player *player)
{
m_prev = player;
}
void Player::setNextPlayer(Player *player)
{
m_next = player;
}
Player *Player::getPrevPlayer()
{
return m_prev;
}
Player *Player::getNextPlayer()
{
return m_next;
}
void Player::grabLordBet(int point)
{
emit notifyGrabLordBet(this, point);
}
void Player::storeDispatchCard(const Card &card)
{
m_cards.add(card);
Cards cs;
cs.add(card);
emit notifyPickCards(this, cs);
}
void Player::storeDispatchCard(const Cards &cards)
{
m_cards.add(cards);
emit notifyPickCards(this, cards);
}
Cards Player::getCards()
{
return m_cards;
}
void Player::clearCards()
{
m_cards.clear();
}
void Player::playHand(Cards &cards)
{
m_cards.remove(cards);
emit notifyPlayHand(this, cards);
}
Player *Player::getPendPlayer()
{
return m_pendPlayer;
}
Cards Player::getPendCards()
{
return m_pendCards;
}
void Player::storePendingInfo(Player *player, const Cards &cards)
{
m_pendPlayer = player;
m_pendCards = cards;
}
void Player::prepareCallLord()
{
}
void Player::preparePlayHand()
{
}
void Player::thinkCallLord()
{
}
void Player::thinkPlayHand()
{
}