#include <FCSMove.h>
Inheritance diagram for FCSMoveStack:
Public Member Functions | |
virtual | ~FCSMoveStack () |
Destructor. | |
void | Normalize (FCSStateWithLocations *InitialState, int NumberOfFreecells, int NumberOfStacks, int NumberOfDecks) |
Convert the moves from using the canonized positions of the stacks and freecells to a user readable position. | |
virtual FCSMoveStack * | Copy ()=0 |
Make a new copy of the move stack. | |
virtual void | Push (FCSMove *Move)=0 |
Push a move onto the stack. | |
virtual int | Pop (FCSMove **Move)=0 |
Pop a move off the stack. | |
void | Reset () |
Clear the stack. | |
void | SwallowStack (FCSMoveStack *SrcStack) |
Put the contents of a stack onto another. | |
int | GetNumberOfMoves () |
Get the number of moves on the stack. | |
Protected Member Functions | |
FCSMoveStack () | |
Constructor. | |
Protected Attributes | |
int | m_MaxNumberOfMoves |
Upper limit of the number of moves on the stack. | |
int | m_NumberOfMoves |
Number of moves on the stack. |
Definition at line 137 of file FCSMove.h.
|
Implemented in FCSCompactMoveStack, and FCSDebugMoveStack. Referenced by FCSFreecellData::TraceSolution(). |
|
Definition at line 258 of file FCSMove.cpp. References m_NumberOfMoves. Referenced by FCSFreecellData::CreateTotalMovesStack(). |
|
Definition at line 158 of file FCSMove.cpp. References ApplyMove(), FCSStateWithLocations::CleanState(), FCSStateWithLocations::Copy(), FCSMove::Create(), CreateMoveStack(), CreateStateWithLocations(), FCSMove::GetDestFreecell(), FCSMove::GetDestStack(), FCSMove::GetFoundation(), FCSMove::GetNumberOfCardsFlipped(), FCSMove::GetNumberOfCardsInSequence(), FCSMove::GetSourceFreecell(), FCSMove::GetSourceStack(), FCSMove::GetType(), FCSStateWithLocations::m_FreecellLocations, FCSStateWithLocations::m_StackLocations, Pop(), Push(), Reset(), and SwallowStack(). Referenced by FCSFreecellData::ShowSolution(). |
|
Implemented in FCSCompactMoveStack, and FCSDebugMoveStack. Referenced by FCSFreecellData::GetNextMove(), Normalize(), and SwallowStack(). |
|
|
Definition at line 248 of file FCSMove.cpp. References FCSMove::Create(), Pop(), and Push(). Referenced by FCSFreecellData::CreateTotalMovesStack(), and Normalize(). |