#include <Deck.h>
Public Types | |
enum | DeckType { STANDARD = 1 } |
Types of decks, standard 52-card deck is supported. | |
Public Member Functions | |
Deck (enum DeckType=STANDARD) throw (error::Exception) | |
Deck constructor. | |
virtual | ~Deck () |
Deck destructor. | |
Card * | deal () throw (error::Exception) |
Deal the top card of the deck. | |
void | shuffle () |
Shuffle the remaining cards of the deck. | |
void | reset () |
Recreate the deck. | |
std::string | view () const |
View the cards of the deck. |
Deck::~Deck | ( | ) | [virtual] |
Deck destructor.
View the cards of the deck.
Card * Deck::deal | ( | ) | throw (error::Exception) |
Deal the top card of the deck.
Recreate the deck.
void Deck::shuffle | ( | ) |
Shuffle the remaining cards of the deck.
Deal the top card of the deck.
void Deck::reset | ( | ) |
Recreate the deck.
Empty the deck.
std::string Deck::view | ( | ) | const |
View the cards of the deck.
Shuffle the remaining cards of the deck.