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

FCSIndirectCard Class Reference

Indirect representation of a card.

#include <FCIndirectState.h>

Inheritance diagram for FCSIndirectCard:

FCSCard List of all members.

Public Member Functions

 FCSIndirectCard ()
 Constructor.
 ~FCSIndirectCard ()
 Destructor.
void Copy (FCSCard *Card)
 Copy the value of a card into a card.
void EmptyCard ()
 Make card have no value.
bool IsEmptyCard ()
 Determines whether or not card is empty.
char GetCardNumber ()
 Retrieves card number.
char GetSuit ()
 Retrieves suit.
char GetFlipped ()
 Retrieves whether or not card is flipped (visible).
void SetSuit (char Suit)
 Set suit of card.
void SetCardNumber (char CardNumber)
 Set card number of card.
void SetFlipped (char Flipped)
 Set flippedness (visibility) of card.
int GetClassSize ()
 Get the size of FCSIndirectCard class.

Public Attributes

char m_Card
 card data

Detailed Description

Definition at line 21 of file FCIndirectState.h.


Member Function Documentation

void FCSIndirectCard::Copy FCSCard Card  )  [virtual]
 

Parameters:
Card is the card to be copied

Implements FCSCard.

Definition at line 23 of file FCIndirectState.cpp.

References m_Card.

Referenced by FCSIndirectTalonStateData::Copy(), FCSIndirectState::Copy(), FCSIndirectStateWithLocations< StateWithLocation >::PushCardIntoStack(), and FCSIndirectStateWithLocations< StateWithLocation >::PutCardInFreecell().

char FCSIndirectCard::GetCardNumber  )  [virtual]
 

Returns:
Card Number of card

Implements FCSCard.

Definition at line 38 of file FCIndirectState.cpp.

References m_Card.

Referenced by FCSIndirectStateWithLocations< StateWithLocation >::GetFreecellCardNumber(), and FCSIndirectStateWithLocations< StateWithLocation >::GetStackCardNumber().

int FCSIndirectCard::GetClassSize  )  [virtual]
 

Returns:
Size of FCSIndirectCard

Implements FCSCard.

Definition at line 68 of file FCIndirectState.cpp.

char FCSIndirectCard::GetFlipped  )  [virtual]
 

Returns:
Visibility of card

Implements FCSCard.

Definition at line 48 of file FCIndirectState.cpp.

References m_Card.

char FCSIndirectCard::GetSuit  )  [virtual]
 

Returns:
Suit of card

Implements FCSCard.

Definition at line 43 of file FCIndirectState.cpp.

References m_Card.

Referenced by FCSIndirectStateWithLocations< StateWithLocation >::GetFreecellCardSuit(), and FCSIndirectStateWithLocations< StateWithLocation >::GetStackCardSuit().

void FCSIndirectCard::SetCardNumber char  CardNumber  )  [virtual]
 

Parameters:
New card number of card

Implements FCSCard.

Definition at line 58 of file FCIndirectState.cpp.

References m_Card.

void FCSIndirectCard::SetFlipped char  Flipped  )  [virtual]
 

Parameters:
New visibility of card

Implements FCSCard.

Definition at line 63 of file FCIndirectState.cpp.

References m_Card.

Referenced by FCSIndirectStateWithLocations< StateWithLocation >::FlipStackCard().

void FCSIndirectCard::SetSuit char  Suit  )  [virtual]
 

Parameters:
New suit of card

Implements FCSCard.

Definition at line 53 of file FCIndirectState.cpp.

References m_Card.


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