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

playhand.h

// Players hand header
// Brandon Goldfedder

#ifndef _PLAYERHAND
#define _PLAYERHAND

#include "stdhand.h"

class PlayerHand: public StandardBlackJackHand {
public:
   PlayerHand(const char* name, Displayer *displayer);
   ~PlayerHand();
   TURN_RESULT TakeTurn();
   bool TookInsurance() const;
   bool OfferInsurance();
   const char* const GetIdentity() const;
private:
   bool tookInsurance;
   char* id;
   };

#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