Main Page | Class Hierarchy | Alphabetical List | Class List | File List | Class Members | File Members

APysolFreecellGameBoard Class Reference

Create PySol freecell-like games. More...

#include <PysolGameBoards.h>

Inheritance diagram for APysolFreecellGameBoard:

AFreecellGameBoard PysolBakersDozenGameBoard PysolBeleagueredCastleGameBoard PysolCitadelGameBoard PysolDerKatzenschwantzGameBoard PysolEightOffGameBoard PysolFanGameBoard PysolForecellGameBoard PysolFreecellGameBoard PysolKlondikeGameBoard PysolSeahavenTowersGameBoard PysolSimpleSimonGameBoard PysolSmallHarpGameBoard PysolWhiteheadGameBoard PysolYukonGameBoard List of all members.

Public Member Functions

virtual ~APysolFreecellGameBoard ()
 Destructor.
virtual void Shuffle (int Seed)
 The size of a string needed to store the generated board output.
virtual int GetGameBoardSize ()=0
 The size of a string needed to store the generated board output.

Protected Member Functions

 APysolFreecellGameBoard (bool Display10AsT)
 Constructor.
 APysolFreecellGameBoard ()
 Constructor.
virtual char * CardToString (char *String, char Card, bool AppendWhiteSpace, bool FlipCondition=false)
 Converts a char Card into a string.

Detailed Description

This class holds the shuffling algorithm for all PySol games

Definition at line 33 of file PysolGameBoards.h.


Member Function Documentation

char * APysolFreecellGameBoard::CardToString char *  String,
char  Card,
bool  AppendWhiteSpace,
bool  FlipCondition = false
[protected, virtual]
 

This differents from the parent class in that the suit values are different

Parameters:
String is the string created from the card
Card is the card to be converted
AppendWhiteSpace determines whether or not to add a space in the string after the card
FlipCondition is whether or not the card is visible on a deal
Returns:
A pointer to the string

Reimplemented from AFreecellGameBoard.

Definition at line 65 of file PysolGameBoards.cpp.

References GetSuit, GetValue, and AFreecellGameBoard::m_Display10AsT.

Referenced by PysolFanGameBoard::Deal(), PysolCitadelGameBoard::Deal(), PysolBeleagueredCastleGameBoard::Deal(), PysolYukonGameBoard::Deal(), PysolSimpleSimonGameBoard::Deal(), PysolSmallHarpGameBoard::Deal(), PysolWhiteheadGameBoard::Deal(), PysolKlondikeGameBoard::Deal(), PysolGypsyGameBoard::Deal(), PysolBakersDozenGameBoard::Deal(), PysolSeahavenTowersGameBoard::Deal(), PysolEightOffGameBoard::Deal(), PysolForecellGameBoard::Deal(), PysolDieSchlangeGameBoard::Deal(), PysolDerKatzenschwantzGameBoard::Deal(), and PysolFreecellGameBoard::Deal().

virtual int APysolFreecellGameBoard::GetGameBoardSize  )  [pure virtual]
 

Returns:
Size of string needed

Implements AFreecellGameBoard.

Implemented in PysolFreecellGameBoard, PysolDerKatzenschwantzGameBoard, PysolDieSchlangeGameBoard, PysolForecellGameBoard, PysolEightOffGameBoard, PysolSeahavenTowersGameBoard, PysolBakersDozenGameBoard, PysolGypsyGameBoard, PysolKlondikeGameBoard, PysolWhiteheadGameBoard, PysolSmallHarpGameBoard, PysolSimpleSimonGameBoard, PysolYukonGameBoard, PysolBeleagueredCastleGameBoard, PysolCitadelGameBoard, and PysolFanGameBoard.

void APysolFreecellGameBoard::Shuffle int  Seed  )  [virtual]
 

Returns:
Size of string needed

Implements AFreecellGameBoard.

Definition at line 36 of file PysolGameBoards.cpp.

References AFreecellGameBoard::GetNumberOfCardsInDeck(), AFreecellGameBoard::m_Deck, MakeCard, and PysolRandom64Int().


The documentation for this class was generated from the following files:
Generated on Sat Nov 5 11:20:16 2005 for Cpp Freecell Solver by  doxygen 1.4.4