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

FCSIndirectTalonStateWithLocations Class Reference

Indirect data representation of a state with locations for a card game with talons.

#include <FCSTalonStateWithLocations.h>

Inheritance diagram for FCSIndirectTalonStateWithLocations:

FCSIndirectStateWithLocations< FCSTalonStateWithLocations > FCSTalonStateWithLocations FCSStateWithLocations List of all members.

Public Member Functions

 FCSIndirectTalonStateWithLocations ()
 Constructor.
virtual ~FCSIndirectTalonStateWithLocations ()
 Destructor.
virtual void Copy (FCSStateWithLocations *State)
 Copy FCSIndirectTalonStateWithLocations object.
virtual void Initialize (int NumberOfStacks)
 Initialize the talon stack.
virtual void CleanState ()
 Clear the talon of the state.
void CacheTalonStacks (FCInternalHash< FCSTalonStateData, void > *TalonHash)
 Cache the talon cards stack.
void CreateTalons (int NumberOfTalons)
 Create a number of talon cards.
FCSTalonStateDataGetTalonData ()
 Get a pointer to all the talon data.
void DecrementKlondikeTalonStack ()
 Take a card off of the talon stack.

Protected Attributes

FCSIndirectTalonStateDatam_TalonData
 Talon data for a state.

Detailed Description

Definition at line 240 of file FCSTalonStateWithLocations.h.


Member Function Documentation

void FCSIndirectTalonStateWithLocations::CacheTalonStacks FCInternalHash< FCSTalonStateData, void > *  TalonHash  )  [virtual]
 

Parameters:
TalonHash is the hash table holding the stacks of talon cards

Implements FCSTalonStateWithLocations.

Definition at line 337 of file FCSTalonStateWithLocations.cpp.

References FCSTalonStateData::GetKlondikeTalonLength(), FCInternalHash< Key, ConfigData >::Insert(), FCSIndirectTalonStateData::m_Talon, and m_TalonData.

void FCSIndirectTalonStateWithLocations::Copy FCSStateWithLocations State  )  [virtual]
 

Parameters:
State is the FCSIndirectTalonStateWithLocations to be copied

Reimplemented from FCSIndirectStateWithLocations< FCSTalonStateWithLocations >.

Definition at line 317 of file FCSTalonStateWithLocations.cpp.

References FCSIndirectTalonStateData::Copy(), FCSIndirectStateWithLocations< StateWithLocation >::Copy(), and m_TalonData.

void FCSIndirectTalonStateWithLocations::CreateTalons int  NumberOfTalons  )  [virtual]
 

Parameters:
NumberOfTalons is the number of talon cards to create

Implements FCSTalonStateWithLocations.

Definition at line 354 of file FCSTalonStateWithLocations.cpp.

References FCSIndirectTalonStateData::m_Talon, and m_TalonData.

FCSTalonStateData * FCSIndirectTalonStateWithLocations::GetTalonData  )  [virtual]
 

Returns:
A pointer to all the talon data

Implements FCSTalonStateWithLocations.

Definition at line 359 of file FCSTalonStateWithLocations.cpp.

References m_TalonData.


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