#include <FCSCompactStateWithLocations.h>
Inheritance diagram for FCSCompactStateWithLocations< StateWithLocation >:
Public Member Functions | |
FCSCompactStateWithLocations () | |
Constructor. | |
virtual | ~FCSCompactStateWithLocations () |
Destructor. | |
virtual void | Copy (FCSStateWithLocations *State) |
Copy FCSCompactStateWithLocations object. | |
int | Compare (const FCSStateWithLocations *State) |
Compare a FCSCompactStateWithLocations to another. | |
FCSCard * | GetStackCard (int Stack, int Card) |
Get a card from the state. | |
char | GetStackCardSuit (int Stack, int Card) |
Get a suit from a card in the state. | |
char | GetStackCardNumber (int Stack, int Card) |
Get a card number from a card in the state. | |
int | GetStackLength (int Stack) |
Get the number of cards in the stack. | |
FCSCard * | GetFreecellCard (int Freecell) |
Get a freecell card from the state. | |
char | GetFreecellCardSuit (int Freecell) |
Get a suit from a freecell card in the state. | |
char | GetFreecellCardNumber (int Freecell) |
Get a card number from a freecell card in the state. | |
char | GetFoundation (int Foundation) |
Get a card number from a foundation in the state. | |
void | IncrementFoundation (int Foundation) |
Add the next card to a foundation in the state. | |
void | SetFoundation (int Foundation, char Value) |
Put a card into a foundation in the state. | |
void | PopStackCard (int Stack, FCSCard *Card) |
Take a card off a stack in the state. | |
void | PushStackCardIntoStack (int DestStack, int SrcStack, int SrcCard) |
Move a card from one stack to another. | |
void | PushCardIntoStack (int DestStack, FCSCard *Card) |
Move a card onto a stack. | |
void | PutCardInFreecell (int Freecell, FCSCard *Card) |
Move a card onto a freecll. | |
void | EmptyFreecell (int Freecell) |
Clear a freecell. | |
void | FlipStackCard (int Stack, int Card) |
Make a stack card flipped over (visible). | |
void | CanonizeState (int NumberOfFreecells, int NumberOfStacks) |
Canonize the state - put it into the internal representation. | |
FCSState * | GetState () |
Get a pointer to the compact state. | |
Protected Attributes | |
FCSCompactState | m_State |
State in compact form. |
Definition at line 44 of file FCSCompactStateWithLocations.h.
|
Definition at line 307 of file FCSCompactStateWithLocations.h. References FCSCard::Compare(), FCS_FREECELLS_OFFSET, FCSCompactState::m_Data, FCSCompactStateWithLocations< StateWithLocation >::m_State, and FCSCompactState::StackCompare(). |
|
Definition at line 199 of file FCSCompactStateWithLocations.h. References FCSCompactState::Compare(), and FCSCompactStateWithLocations< StateWithLocation >::m_State. |
|
Reimplemented in FCSCompactTalonStateWithLocations. Definition at line 191 of file FCSCompactStateWithLocations.h. References FCSCompactStateWithLocations< StateWithLocation >::m_State. Referenced by FCSCompactTalonStateWithLocations::Copy(). |
|
Definition at line 295 of file FCSCompactStateWithLocations.h. References FCS_FREECELLS_OFFSET, FCSCompactCard::m_Card, FCSCompactState::m_Data, and FCSCompactStateWithLocations< StateWithLocation >::m_State. |
|
Definition at line 301 of file FCSCompactStateWithLocations.h. References FCSCompactState::m_Data, FCSCompactStateWithLocations< StateWithLocation >::m_State, and FCSCompactCard::SetFlipped(). |
|
Definition at line 247 of file FCSCompactStateWithLocations.h. References FCS_FOUNDATIONS_OFFSET, FCSCompactCard::m_Card, FCSCompactState::m_Data, and FCSCompactStateWithLocations< StateWithLocation >::m_State. |
|
Definition at line 229 of file FCSCompactStateWithLocations.h. References FCS_FREECELLS_OFFSET, FCSCompactState::m_Data, and FCSCompactStateWithLocations< StateWithLocation >::m_State. |
|
Definition at line 241 of file FCSCompactStateWithLocations.h. References FCS_FREECELLS_OFFSET, FCSCompactCard::GetCardNumber(), FCSCompactState::m_Data, and FCSCompactStateWithLocations< StateWithLocation >::m_State. |
|
Definition at line 235 of file FCSCompactStateWithLocations.h. References FCS_FREECELLS_OFFSET, FCSCompactCard::GetSuit(), FCSCompactState::m_Data, and FCSCompactStateWithLocations< StateWithLocation >::m_State. |
|
Definition at line 205 of file FCSCompactStateWithLocations.h. References FCSCompactState::m_Data, and FCSCompactStateWithLocations< StateWithLocation >::m_State. Referenced by FCSCompactStateWithLocations< StateWithLocation >::PopStackCard(), and FCSCompactStateWithLocations< StateWithLocation >::PushStackCardIntoStack(). |
|
Definition at line 217 of file FCSCompactStateWithLocations.h. References FCSCompactCard::GetCardNumber(), FCSCompactState::m_Data, and FCSCompactStateWithLocations< StateWithLocation >::m_State. |
|
Definition at line 211 of file FCSCompactStateWithLocations.h. References FCSCompactCard::GetSuit(), FCSCompactState::m_Data, and FCSCompactStateWithLocations< StateWithLocation >::m_State. |
|
Definition at line 223 of file FCSCompactStateWithLocations.h. References FCSCompactCard::m_Card, FCSCompactState::m_Data, and FCSCompactStateWithLocations< StateWithLocation >::m_State. Referenced by FCSCompactStateWithLocations< StateWithLocation >::PopStackCard(), and FCSCompactStateWithLocations< StateWithLocation >::PushCardIntoStack(). |
|
Definition at line 360 of file FCSCompactStateWithLocations.h. References FCSCompactStateWithLocations< StateWithLocation >::m_State. |
|
Definition at line 253 of file FCSCompactStateWithLocations.h. References FCS_FOUNDATIONS_OFFSET, FCSCompactCard::m_Card, FCSCompactState::m_Data, and FCSCompactStateWithLocations< StateWithLocation >::m_State. |
|
Definition at line 265 of file FCSCompactStateWithLocations.h. References FCSCard::Copy(), FCSCompactCard::EmptyCard(), FCSCompactStateWithLocations< StateWithLocation >::GetStackCard(), FCSCompactStateWithLocations< StateWithLocation >::GetStackLength(), FCSCompactCard::m_Card, FCSCompactState::m_Data, and FCSCompactStateWithLocations< StateWithLocation >::m_State. |
|
Definition at line 282 of file FCSCompactStateWithLocations.h. References FCSCompactCard::Copy(), FCSCompactStateWithLocations< StateWithLocation >::GetStackLength(), FCSCompactCard::m_Card, FCSCompactState::m_Data, and FCSCompactStateWithLocations< StateWithLocation >::m_State. Referenced by FCSCompactStateWithLocations< StateWithLocation >::PushStackCardIntoStack(). |
|
Definition at line 275 of file FCSCompactStateWithLocations.h. References FCSCompactStateWithLocations< StateWithLocation >::GetStackCard(), and FCSCompactStateWithLocations< StateWithLocation >::PushCardIntoStack(). |
|
Definition at line 289 of file FCSCompactStateWithLocations.h. References FCSCompactCard::Copy(), FCS_FREECELLS_OFFSET, FCSCompactState::m_Data, and FCSCompactStateWithLocations< StateWithLocation >::m_State. |
|
Definition at line 259 of file FCSCompactStateWithLocations.h. References FCS_FOUNDATIONS_OFFSET, FCSCompactCard::m_Card, FCSCompactState::m_Data, and FCSCompactStateWithLocations< StateWithLocation >::m_State. |