代码拉取完成,页面将自动刷新
#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::setSex(Sex sex)
{
m_sex = sex;
}
Player::Sex Player::getSex()
{
return m_sex;
}
void Player::setDirection(Direction direction)
{
m_direction = direction;
}
Player::Direction Player::getDirection()
{
return m_direction;
}
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()
{
}
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。