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

FCSPreset Class Reference

Class holding preset information.

#include <FCPresets.h>

List of all members.

Public Member Functions

void ApplyPresetID (FCSPresetID Id)
 Given a preset ID, fill in the preset game information.

Static Public Member Functions

static FCSPresetGetPresetInfo (const char *Name)
 Given a game name, get the preset game information.

Public Attributes

FCSPresetID m_PresetID
 preset ID for a game
int m_NumberOfFreecells
 Number of freecells in the game.
int m_NumberOfStacks
 Number of stacks in the game.
int m_NumberOfDecks
 Number of decks in the game.
BuildSequenceByEnum m_SequencesAreBuiltBy
 How sequences are built in the game.
bool m_UnlimitedSequenceMove
 Whether sequence moves are unlimited in the game.
FCEmptyStacksFillType m_EmptyStacksFill
 How empty stacks are filled in the game.
FCSTalonType m_TalonType
 Type of talon, if any.
char m_TestOrder [FCS_TESTS_NUM *3+1]
 The order to do tests to solve the game.


Detailed Description

Definition at line 43 of file FCPresets.h.


Member Function Documentation

void FCSPreset::ApplyPresetID FCSPresetID  Id  ) 
 

Parameters:
Id is the preset ID for the game

Definition at line 330 of file FCPresets.cpp.

References m_EmptyStacksFill, m_NumberOfDecks, m_NumberOfFreecells, m_NumberOfStacks, m_PresetID, m_SequencesAreBuiltBy, m_TalonType, m_TestOrder, and m_UnlimitedSequenceMove.

Referenced by GetPresetInfo().

FCSPreset * FCSPreset::GetPresetInfo const char *  Name  )  [static]
 

Parameters:
Name is the name fo the game
Returns:
A pointer to the preset game information

Definition at line 317 of file FCPresets.cpp.

References ApplyPresetID(), and FCSPresetName::GetPresetID().

Referenced by FCCommandLineArguments::Verify().


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