45 Card(
const Suits suit,
const int value,
const double points,
const bool oudler );
48 int computeIndex()
const;
68 return this->suit == card.suit || this->suit == 4 || card.suit == 4;
78 inline bool isOudler ()
const {
return oudler; }
89 bool operator>(
const Card& card )
const;
97 bool operator<(
const Card& card )
const;
104 bool operator==(
const Card& card )
const;
bool isComparable(const Card &card) const
A function to decide if two cards are comparable.
Definition: Card.hpp:66
bool isFaceCard() const
Inline function returning true iif the card is a face card.
Definition: Card.hpp:72
bool isFool() const
Inline function returning true iif the card is the Fool.
Definition: Card.hpp:75
Suits
The enum containing all suits, plus the Fool as a special suit.
Definition: Suits.hpp:25
double getPoints() const
Inline assessor to get the card's points.
Definition: Card.hpp:51
Card is the class compiling all useful information on cards: points, suit, value...
Definition: Card.hpp:32
ostream & operator<<(ostream &os, const Card &card)
Definition: Card.cpp:74
int getValue() const
Inline assessor to get the card's value.
Definition: Card.hpp:57
bool isTrump() const
Inline function returning true iif the card is a trump.
Definition: Card.hpp:81
bool isOudler() const
Inline function returning true iif the card is an oudler.
Definition: Card.hpp:78
Suits getSuit() const
Inline assessor to get the card's suit.
Definition: Card.hpp:54