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

FCSDebugCard Class Reference

Debug representation of a card.

#include <FCDebugState.h>

Inheritance diagram for FCSDebugCard:

FCSCard List of all members.

Public Member Functions

 FCSDebugCard ()
 Constructor.
virtual ~FCSDebugCard ()
 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 FCSDebugCard class.

Public Attributes

friend FCSDebugStateWithLocations< FCSTalonStateWithLocations >
 friend of FCSDebugCard
friend FCSDebugStateWithLocations< FCSStateWithLocations >
 friend of FCSDebugCard

Private Attributes

char m_CardNumber
 Card number.
char m_Suit
 Card suit.
char m_Flags
 Any flags that may apply to the card (e.g. flipped).

Detailed Description

Definition at line 19 of file FCDebugState.h.


Member Function Documentation

void FCSDebugCard::Copy FCSCard Card  )  [virtual]
 

Parameters:
Card is the card to be copied

Implements FCSCard.

Definition at line 23 of file FCDebugState.cpp.

References m_CardNumber, m_Flags, and m_Suit.

Referenced by FCSDebugTalonStateData::Copy(), FCSDebugStateWithLocations< StateWithLocation >::PushCardIntoStack(), FCSDebugStateWithLocations< StateWithLocation >::PushStackCardIntoStack(), and FCSDebugStateWithLocations< StateWithLocation >::PutCardInFreecell().

char FCSDebugCard::GetCardNumber  )  [virtual]
 

Returns:
Card Number of card

Implements FCSCard.

Definition at line 45 of file FCDebugState.cpp.

References m_CardNumber.

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

int FCSDebugCard::GetClassSize  )  [virtual]
 

Returns:
Size of FCSDebugCard

Implements FCSCard.

Definition at line 75 of file FCDebugState.cpp.

char FCSDebugCard::GetFlipped  )  [virtual]
 

Returns:
Visibility of card

Implements FCSCard.

Definition at line 55 of file FCDebugState.cpp.

References m_Flags.

char FCSDebugCard::GetSuit  )  [virtual]
 

Returns:
Suit of card

Implements FCSCard.

Definition at line 50 of file FCDebugState.cpp.

References m_Suit.

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

void FCSDebugCard::SetCardNumber char  CardNumber  )  [virtual]
 

Parameters:
New card number of card

Implements FCSCard.

Definition at line 65 of file FCDebugState.cpp.

References m_CardNumber.

void FCSDebugCard::SetFlipped char  Flipped  )  [virtual]
 

Parameters:
New visibility of card

Implements FCSCard.

Definition at line 70 of file FCDebugState.cpp.

References m_Flags.

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

void FCSDebugCard::SetSuit char  Suit  )  [virtual]
 

Parameters:
New suit of card

Implements FCSCard.

Definition at line 60 of file FCDebugState.cpp.

References m_Suit.


Member Data Documentation

friend FCSDebugCard::FCSDebugStateWithLocations< FCSStateWithLocations >
 

It's not worth making this a template class too, so I'm including the

Definition at line 33 of file FCDebugState.h.

friend FCSDebugCard::FCSDebugStateWithLocations< FCSTalonStateWithLocations >
 

It's not worth making this a template class too, so I'm including the

Definition at line 27 of file FCDebugState.h.


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