#include <stdlib.h>
#include <string.h>
#include <stdio.h>
#include <assert.h>
#include "FCState.h"
#include "FCTalonState.h"
#include "FCDebugState.h"
#include "FCCompactState.h"
#include "FCIndirectState.h"
#include "FCSDebugStateWithLocations.h"
#include "FCSCompactStateWithLocations.h"
#include "FCSIndirectStateWithLocations.h"
#include "FCSTalonStateWithLocations.h"
Go to the source code of this file.
Defines | |
| #define | min(a, b) ((a)<(b)?(a):(b)) |
| The minimum of two values. | |
Functions | |
| int | GetFCSStateWithLocationsClassSize () |
| Get the size of the child FCSStateWithLocations class. | |
| FCSStateWithLocations * | CreateStateWithLocations () |
| Create a FCSStateWithLocations object. | |
| AFCSStateWithLocationsMatrix * | CreateStateWithLocationsMatrix (int Size) |
| Create a AFCSStateWithLocationsMatrix object. | |
| void | ReallocStateWithLocationsArray (FCSStateWithLocations ***Array, int OldSize, int NewSize) |
| Reallocate an array of FCSStateWithLocations pointers. | |
| FCSStateWithLocations * | CreateInitialState (const char *String, int NumberOfFreecells, int NumberOfStacks, int NumberOfDecks, FCSTalonType TalonType) |
| Convert a string representation of a state into a FCSStateWithLocations object. | |
Variables | |
| FCStateType | GlobalStateType = FC_DEBUG_STATE |
| The state type currently being used by the solver. | |
| const char *const | FreecellsPrefixes [] = { "FC:", "Freecells:", "Freecell:", ""} |
| String freecell prefixes. | |
| const char *const | FoundationsPrefixes [] = { "Decks:", "Deck:", "Founds:", "Foundations:", "Foundation:", "Found:", ""} |
| String foundation prefixes. | |
Definition in file FCState.cpp.
|
||||||||||||||||||||||||
|
Definition at line 610 of file FCState.cpp. References FCSStateWithLocations::CreateInitialState(), and FCSTalonStateWithLocations::CreateInitialState(). Referenced by FCCommandLineArguments::Verify(). |
|
|
Definition at line 539 of file FCState.cpp. References GlobalStateType. Referenced by FCSTalonStateWithLocations::CreateInitialState(), FCSStateWithLocations::CreateInitialState(), main(), FCSMoveStack::Normalize(), and TestEachGame(). |
|
|
Definition at line 560 of file FCState.cpp. References GlobalStateType. Referenced by FCSFreecellData::FCSFreecellData(), FCSDFSSolvingAlgorithm< SolvingAlgorithmType >::Solve(), and FCSFreecellData::TraceSolution(). |
|
|
Definition at line 518 of file FCState.cpp. References GlobalStateType. Referenced by FCSFreecellData::FCSFreecellData(). |
|
||||||||||||||||
|
The normal realloc was insufficient to handle this becuase of the different FCSStateWithLocations types
Definition at line 581 of file FCState.cpp. References GlobalStateType. Referenced by FCSDerivedStatesList::AddState(). |
1.4.4