43 bool hasStrongerThan(
const shared_ptr<Card> card )
const;
50 int indexInDeck(
const shared_ptr<Card> card )
const;
58 vector< shared_ptr<Card> >
cards;
59 vector< shared_ptr<Card> >
heads;
int numberDiamonds
The number of Diamonds in the deck.
Definition: Deck.hpp:62
Deck is the class managing the deck of cards. Used as well as for the game deck, but also for a count...
Definition: Deck.hpp:32
int numberTrumps
The number of Trumps in the deck.
Definition: Deck.hpp:64
int numberSpades
The number of Spades in the deck.
Definition: Deck.hpp:61
vector< shared_ptr< Card > > cards
The vector of all cards in the deck.
Definition: Deck.hpp:58
int numberHearts
The number of Hearts in the deck.
Definition: Deck.hpp:60
int numberClubs
The number of Clubs in the deck.
Definition: Deck.hpp:63
vector< shared_ptr< Card > > heads
The vector of head cards (useful calling a card for 5-players games).
Definition: Deck.hpp:59