proj home

Files   Classes   Functions   Hierarchy  

deck Class Reference

Generic deck. More...

#include <deck.h>

Inheritance diagram for deck:

List of all members.

Public Member Functions

virtual ~deck ()
 Cleanup.
virtual uintc draw ()=0
 Draw a card from the deck.


Detailed Description

Generic deck.

The client derives this class.

Shuffling and other issues are hidden. The cards are represented by integers. However you can abstract. For example if suit is not important then 2 could represent a 2 of spades, clubs, hearts or diamonds.

Definition at line 18 of file deck.h.


Constructor & Destructor Documentation

virtual deck::~deck (  )  [inline, virtual]

Cleanup.

Definition at line 23 of file deck.h.

00023 {}


Member Function Documentation

virtual uintc deck::draw (  )  [pure virtual]

Draw a card from the deck.

Implemented in deckpontoon.

Referenced by playerGame::alive_play(), playerGame::notalive_dealCards(), and dealer::play().


The documentation for this class was generated from the following file:

Generated on Fri Mar 4 00:49:55 2011 for Chelton Evans Source by  doxygen 1.5.8