41 set< shared_ptr<Card> > getAllCards()
const;
48 void setCard(
const shared_ptr<Player> player,
const shared_ptr<Card> card );
51 double getScore()
const;
54 inline int getNumberOfCards()
const {
return trickCards.empty() ? 0 : trickCards.size(); }
57 void showAllCards()
const;
63 inline shared_ptr<Card>
getCard (
const shared_ptr<Player> player )
const {
return trickCards.at(player); }
66 inline shared_ptr<Card>
getWinCard ()
const {
return trickCards.at(leader); }
69 inline shared_ptr<Player>
getLeader ()
const {
return leader; }
81 shared_ptr<Player> leader;
82 shared_ptr<Player> foolPlayer;
83 shared_ptr<Card> greaterTrump;
85 map< shared_ptr<Player>, shared_ptr<Card> > trickCards;
int getNumberOfCards() const
Inline function returning the number of cards composing the trick.
Definition: Trick.hpp:54
shared_ptr< Card > getWinCard() const
Inline function returning the card which takes the trick.
Definition: Trick.hpp:66
shared_ptr< Player > getLeader() const
Definition: Trick.hpp:69
Suits
The enum containing all suits, plus the Fool as a special suit.
Definition: Suits.hpp:25
shared_ptr< Card > getCard(const shared_ptr< Player > player) const
Inline assessor to the card played of the given player during the current trick.
Definition: Trick.hpp:63
shared_ptr< Card > getGreaterTrump() const
Definition: Trick.hpp:75
Suits getReferenceSuit() const
Definition: Trick.hpp:78
This class manages the current and previously played tricks.
Definition: Trick.hpp:34
shared_ptr< Player > getFoolPlayer() const
Definition: Trick.hpp:72