O'Reilly logo

Joy of Patterns: Using Patterns for Enterprise Development, The by Brandon Goldfedder

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

stddisp.h

#ifndef _STANDARDDISPLAYER
#define _STANDARDDISPLAYER

#include "bjhand.h"
#include "display.h"

class StandardDisplayer: public Displayer {
public:
   StandardDisplayer();
   ~StandardDisplayer();
   void DrawCard(const BlackJackHand& hand, const Card& card);
   void DisplayTurn(const BlackJackHand& hand,
      BlackJackHand::TURN_RESULT turn);
   void DisplayResult(const BlackJackHand& hand, const char*
      result = 0);
   bool InquireInsurance(const BlackJackHand& hand);
   BlackJackHand::TURN_RESULT InquireTurn(const BlackJackHand& hand,
      bool mayDouble = false, bool maySplit = false);
   bool InquireNewGame();
private:
   void DisplayCards(const BlackJackHand& hand);
   };

#endif

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required