void ServerPlayer::throwAllHandCards(){ DummyCard *card = wholeHandCards(); if(card == NULL) return; room->throwCard(card, this); card->deleteLater(); }
void ServerPlayer::throwAllHandCards(){ DummyCard *card = wholeHandCards(); if(card == NULL) return; room->throwCard(card); CardStar card_star = card; QVariant data = QVariant::fromValue(card_star); room->getThread()->trigger(CardDiscarded, this, data); card->deleteLater(); }