// cppHearts, Copyright 2001 Michael W. Godfrey, email: migod@uwaterloo.ca // See copyright.txt for details. #ifndef _CARDPILE_H_ #define _CARDPILE_H_ #include #include "Card.h" // Note: Will have to give away this header file to students. // Implements a pile of (pointers to) cards. class CardPile : public vector { public: // Constructors and destructor CardPile (); virtual ~CardPile (); // Accessors virtual void print () const; // Mutators virtual void add (Card *card); virtual void add (CardPile *otherPile); virtual void remove (Card *card); virtual void shuffle (); }; #endif