// cppHearts, Copyright 2001 Michael W. Godfrey, email: migod@uwaterloo.ca // See copyright.txt for details. #ifndef _TRICK_H_ #define _TRICK_H_ class Player; #include "CardPile.h" #include "Player.h" // A trick (eventually) consists of N cards (where N is number of players). // i.e. each player has played one card. class Trick : public CardPile { public: Trick(); virtual ~Trick (); virtual Player* getTrumper () const; virtual Card* getTrumpCard () const; virtual Card* getLeadCard () const; virtual void print () const; virtual void addCardToTrick (Card *newCard, Player *who); private: // A reference to the player who is currently going to win the trick. Player* trumper; // leadCard is the first card that was played. // trumpCard is the current trump card (the player who played it is // referenced by trumper). Card* leadCard; Card* trumpCard; }; #endif