/** * Get all the played cards for the round */ Cards Model::getCardsOnTable() const { Cards cards; for (int i = 0; i < NUM_PLAYERS; i++) { cards.insert(cards.end(), players_.at(i)->getPlayedCards().begin(), players_.at(i)->getPlayedCards().end()); } return cards; }
/** * Add all cards assigned to players to an array and return (in order) */ Cards Model::getDeck() const { Cards cards; for (int i = 0; i < NUM_PLAYERS; i++) { cards.insert(cards.end(), players_.at(i)->getOriginalCards().begin(), players_.at(i)->getOriginalCards().end()); } return cards; }