|
NetMauMau
0.17.1
Client API
|
#include <icard.h>
Describes a playing card.
Public Types | |
| enum | RANK { SEVEN = 7, EIGHT = 8, NINE = 9, TEN = 10, JACK, QUEEN, KING, ACE, RANK_ILLEGAL } |
| The rank of the card. More... | |
| enum | SUIT { DIAMONDS, HEARTS, SPADES, CLUBS, SUIT_ILLEGAL } |
| The suit of the card. More... | |
Public Member Functions | |
| virtual std::string | description (bool ansi=false) const =0 |
| Returns the textual description of the card. More... | |
| virtual std::size_t | getPoints () const =0 |
| Gets the points of the card. More... | |
| virtual RANK | getRank () const =0 |
| Gets the rank of the card. More... | |
| virtual SUIT | getSuit () const =0 |
| Gets the suit of the card. More... | |
|
pure virtual |
Returns the textual description of the card.
| ansi | true if ANSI color code should be used, false otherwise |
|
pure virtual |
|
pure virtual |
Gets the rank of the card.
Referenced by NetMauMau::Common::cardEqual(), NetMauMau::Common::cardGreater(), NetMauMau::Common::cardLess(), and NetMauMau::Common::isRank().
|
pure virtual |
Gets the suit of the card.
Referenced by NetMauMau::Common::cardEqual(), NetMauMau::Common::cardGreater(), NetMauMau::Common::cardLess(), and NetMauMau::Common::isSuit().
1.8.8