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

MicrosoftFreecellGameBoard Class Reference

Create a Microsoft freecell game.

#include <MiscFreecellGameBoards.h>

Inheritance diagram for MicrosoftFreecellGameBoard:

AFreecellGameBoard GnomeFreecellGameBoard List of all members.

Public Member Functions

 MicrosoftFreecellGameBoard (bool Display10AsT)
 Constructor.
virtual ~MicrosoftFreecellGameBoard ()
 Destructor.
virtual void Shuffle (int Seed)
 Shuffles the deck of cards.
virtual void Deal (char *GameBoard)
 Deal a Microsoft freecell game.
virtual int GetGameBoardSize ()
 The size of a string needed to store the generated freecell board output.

Detailed Description

Definition at line 15 of file MiscFreecellGameBoards.h.


Member Function Documentation

void MicrosoftFreecellGameBoard::Deal char *  GameBoard  )  [virtual]
 

Parameters:
GameBoard is the string the output is put into

Implements AFreecellGameBoard.

Definition at line 57 of file MiscFreecellGameBoards.cpp.

References AFreecellGameBoard::CardToString(), AFreecellGameBoard::GetNumberOfCardsInDeck(), and AFreecellGameBoard::m_Deck.

int MicrosoftFreecellGameBoard::GetGameBoardSize  )  [virtual]
 

Returns:
Size of string needed

Implements AFreecellGameBoard.

Definition at line 80 of file MiscFreecellGameBoards.cpp.

void MicrosoftFreecellGameBoard::Shuffle int  Seed  )  [virtual]
 

This is the same shuffling algorithm used to create Microsoft freecell games

Parameters:
Seed is the random number seed used in the shuffle

Implements AFreecellGameBoard.

Reimplemented in GnomeFreecellGameBoard.

Definition at line 30 of file MiscFreecellGameBoards.cpp.

References AFreecellGameBoard::GetNumberOfCardsInDeck(), AFreecellGameBoard::m_Deck, and MicrosoftRandom().


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