deck::Deck Class Reference

Deck is a deck of cards. More...

#include <Deck.h>

List of all members.

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.
Carddeal () 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.


Detailed Description

Deck is a deck of cards.

Constructor & Destructor Documentation

Deck::~Deck (  )  [virtual]

Deck destructor.

View the cards of the deck.


Member Function Documentation

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.


The documentation for this class was generated from the following files:
Generated on Thu Mar 6 09:44:38 2008 for carddeck by  doxygen 1.5.3