#include <FCSMove.h>
Inheritance diagram for FCSMove:
Public Member Functions | |
virtual void | Copy (FCSMove *Move)=0 |
Copy a move object. | |
virtual unsigned char | GetSourceStack ()=0 |
Get the source stack used in the move. | |
virtual unsigned char | GetSourceFreecell ()=0 |
Get the source freecell used in the move. | |
virtual unsigned char | GetDestStack ()=0 |
Get the destination stack used in the move. | |
virtual unsigned char | GetDestFreecell ()=0 |
Get the destination freecell used in the move. | |
virtual unsigned char | GetFoundation ()=0 |
Get the foundation used in the move. | |
virtual FCSMoveTypes | GetType ()=0 |
Get the type of the move. | |
virtual unsigned char | GetNumberOfCardsInSequence ()=0 |
Get the number of cards in a sequence that moved (from stack to stack). | |
virtual unsigned char | GetNumberOfCardsFlipped ()=0 |
Get the number of cards that were flipped during the move. | |
virtual void | SetSourceStack (unsigned char StackNumber)=0 |
Set the source stack used in the move. | |
virtual void | SetSourceFreecell (unsigned char FreecellNumber)=0 |
Set the source freecell used in the move. | |
virtual void | SetDestStack (unsigned char StackNumber)=0 |
Set the destination stack used in the move. | |
virtual void | SetDestFreecell (unsigned char FreecellNumber)=0 |
Set the destination freecell used in the move. | |
virtual void | SetFoundation (unsigned char FoundationNumber)=0 |
Set the foundation used in the move. | |
virtual void | SetType (FCSMoveTypes MoveType)=0 |
Set the type of the move. | |
virtual void | SetNumberOfCardsInSequence (unsigned char NumberOfCardsInSequence)=0 |
Set the number of cards in a sequence that moved (from stack to stack). | |
virtual void | SetNumberOfCardsFlipped (unsigned char NumberOfCardsFlipped)=0 |
Set the number of cards that were flipped during the move. | |
void | MoveAsString (char *String) |
Express the move as string explaining what happened during the move. | |
void | MoveAsStringStandardNotation (char *String) |
Express the move as standard notation string explaining what happened during the move. | |
Static Public Member Functions | |
static FCSMove * | Create () |
Create a move object. | |
static FCSMove * | CreateArray (int Size) |
Create an array of move objects. |
Definition at line 26 of file FCSMove.h.
|
Implemented in FCSCompactMove, and FCSDebugMove. |
|
|
Definition at line 38 of file FCSMove.cpp. References GlobalStateType. |
|
Implemented in FCSCompactMove, and FCSDebugMove. Referenced by ApplyMove(), FCSDebugMove::Copy(), MoveAsString(), MoveAsStringStandardNotation(), and FCSMoveStack::Normalize(). |
|
Implemented in FCSCompactMove, and FCSDebugMove. Referenced by ApplyMove(), FCSDebugMove::Copy(), MoveAsString(), MoveAsStringStandardNotation(), and FCSMoveStack::Normalize(). |
|
Implemented in FCSCompactMove, and FCSDebugMove. Referenced by ApplyMove(), FCSDebugMove::Copy(), and FCSMoveStack::Normalize(). |
|
Implemented in FCSCompactMove, and FCSDebugMove. Referenced by FCSDebugMove::Copy(), MoveAsString(), and FCSMoveStack::Normalize(). |
|
Implemented in FCSCompactMove, and FCSDebugMove. Referenced by ApplyMove(), FCSDebugMove::Copy(), MoveAsString(), and FCSMoveStack::Normalize(). |
|
Implemented in FCSCompactMove, and FCSDebugMove. Referenced by ApplyMove(), FCSDebugMove::Copy(), MoveAsString(), MoveAsStringStandardNotation(), and FCSMoveStack::Normalize(). |
|
Implemented in FCSCompactMove, and FCSDebugMove. Referenced by ApplyMove(), FCSDebugMove::Copy(), MoveAsString(), MoveAsStringStandardNotation(), and FCSMoveStack::Normalize(). |
|
Implemented in FCSCompactMove, and FCSDebugMove. Referenced by ApplyMove(), FCSDebugMove::Copy(), MoveAsString(), MoveAsStringStandardNotation(), and FCSMoveStack::Normalize(). |
|
Definition at line 55 of file FCSMove.cpp. References GetDestFreecell(), GetDestStack(), GetNumberOfCardsFlipped(), GetNumberOfCardsInSequence(), GetSourceFreecell(), GetSourceStack(), and GetType(). Referenced by FCSFreecellData::ShowSolution(). |
|
Definition at line 114 of file FCSMove.cpp. References GetDestFreecell(), GetDestStack(), GetSourceFreecell(), GetSourceStack(), and GetType(). Referenced by FCSFreecellData::ShowSolution(). |
|
Implemented in FCSCompactMove, and FCSDebugMove. Referenced by FCSFreecellSolvingAlgorithm::EmptyStackIntoFreecells(), FCSFreecellSolvingAlgorithm::MoveCardsToADifferentParent(), FCSFreecellSolvingAlgorithm::MoveFreecellCardsToTopOfStacks(), FCSFreecellSolvingAlgorithm::MoveNonTopStackCardsToFounds(), FCSFreecellSolvingAlgorithm::MoveSequencesToFreeStacks(), FCSFreecellSolvingAlgorithm::MoveStackCardsToAParentOnTheSameStack(), and FCSFreecellSolvingAlgorithm::MoveStackCardsToDifferentStacks(). |
|
|
Implemented in FCSCompactMove, and FCSDebugMove. Referenced by FCSTalonSolvingAlgorithm::GetCardFromKlondikeTalon(), FCSFreecellSolvingAlgorithm::MoveFreecellCardsToFounds(), FCSFreecellSolvingAlgorithm::MoveNonTopStackCardsToFounds(), FCSSimpleSimonSolvingAlgorithm::MoveSequenceToFounds(), and FCSFreecellSolvingAlgorithm::MoveTopStackCardsToFounds(). |
|
Implemented in FCSCompactMove, and FCSDebugMove. Referenced by FCSTalonSolvingAlgorithm::GetCardFromKlondikeTalon(). |
|
Implemented in FCSCompactMove, and FCSDebugMove. Referenced by FCSFreecellSolvingAlgorithm::MoveCardsToADifferentParent(), FCSFreecellSolvingAlgorithm::MoveFreecellCardsToTopOfStacks(), FCSFreecellSolvingAlgorithm::MoveNonTopStackCardsToFounds(), FCSFreecellSolvingAlgorithm::MoveSequencesToFreeStacks(), FCSFreecellSolvingAlgorithm::MoveStackCardsToAParentOnTheSameStack(), and FCSFreecellSolvingAlgorithm::MoveStackCardsToDifferentStacks(). |
|
Implemented in FCSCompactMove, and FCSDebugMove. Referenced by FCSFreecellSolvingAlgorithm::MoveFreecellCardsToEmptyStack(), FCSFreecellSolvingAlgorithm::MoveFreecellCardsToFounds(), FCSFreecellSolvingAlgorithm::MoveFreecellCardsToTopOfStacks(), and FCSFreecellSolvingAlgorithm::MoveStackCardsToAParentOnTheSameStack(). |
|
Implemented in FCSCompactMove, and FCSDebugMove. Referenced by FCSFreecellSolvingAlgorithm::EmptyStackIntoFreecells(), FCSFreecellSolvingAlgorithm::FlipTopCard(), FCSFreecellSolvingAlgorithm::MoveCardsToADifferentParent(), FCSFreecellSolvingAlgorithm::MoveFreecellCardsToTopOfStacks(), FCSFreecellSolvingAlgorithm::MoveNonTopStackCardsToFounds(), FCSFreecellSolvingAlgorithm::MoveSequencesToFreeStacks(), FCSSimpleSimonSolvingAlgorithm::MoveSequenceToFounds(), FCSFreecellSolvingAlgorithm::MoveStackCardsToAParentOnTheSameStack(), FCSFreecellSolvingAlgorithm::MoveStackCardsToDifferentStacks(), and FCSFreecellSolvingAlgorithm::MoveTopStackCardsToFounds(). |
|
Implemented in FCSCompactMove, and FCSDebugMove. Referenced by FCSFreecellSolvingAlgorithm::EmptyStackIntoFreecells(), FCSFreecellSolvingAlgorithm::FlipTopCard(), FCSTalonSolvingAlgorithm::GetCardFromKlondikeTalon(), FCSFreecellSolvingAlgorithm::MoveCardsToADifferentParent(), FCSFreecellSolvingAlgorithm::MoveFreecellCardsToEmptyStack(), FCSFreecellSolvingAlgorithm::MoveFreecellCardsToFounds(), FCSFreecellSolvingAlgorithm::MoveFreecellCardsToTopOfStacks(), FCSFreecellSolvingAlgorithm::MoveNonTopStackCardsToFounds(), FCSFreecellSolvingAlgorithm::MoveSequencesToFreeStacks(), FCSSimpleSimonSolvingAlgorithm::MoveSequenceToFounds(), FCSFreecellSolvingAlgorithm::MoveStackCardsToAParentOnTheSameStack(), FCSFreecellSolvingAlgorithm::MoveStackCardsToDifferentStacks(), and FCSFreecellSolvingAlgorithm::MoveTopStackCardsToFounds(). |