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

FCSDebugTalonStateWithLocations Class Reference

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

#include <FCSTalonStateWithLocations.h>

Inheritance diagram for FCSDebugTalonStateWithLocations:

FCSDebugStateWithLocations< StateWithLocation > List of all members.

Public Member Functions

 FCSDebugTalonStateWithLocations ()
 Constructor.
virtual ~FCSDebugTalonStateWithLocations ()
 Destructor.
virtual void Copy (FCSStateWithLocations *State)
 Copy FCSDebugTalonStateWithLocations 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

FCSDebugTalonStateDatam_TalonData
 Talon data for a state.

Detailed Description

Definition at line 66 of file FCSTalonStateWithLocations.h.


Member Function Documentation

void FCSDebugTalonStateWithLocations::CacheTalonStacks FCInternalHash< FCSTalonStateData, void > *  TalonHash  ) 
 

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

Definition at line 99 of file FCSTalonStateWithLocations.cpp.

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

void FCSDebugTalonStateWithLocations::Copy FCSStateWithLocations State  )  [virtual]
 

Parameters:
State is the FCSDebugTalonStateWithLocations to be copied

Reimplemented from FCSDebugStateWithLocations< StateWithLocation >.

Definition at line 81 of file FCSTalonStateWithLocations.cpp.

References FCSDebugTalonStateData::Copy(), FCSDebugStateWithLocations< StateWithLocation >::Copy(), and m_TalonData.

void FCSDebugTalonStateWithLocations::CreateTalons int  NumberOfTalons  ) 
 

Parameters:
NumberOfTalons is the number of talon cards to create

Definition at line 116 of file FCSTalonStateWithLocations.cpp.

References FCSDebugTalonStateData::m_Talon, and m_TalonData.

FCSTalonStateData * FCSDebugTalonStateWithLocations::GetTalonData  ) 
 

Returns:
A pointer to all the talon data

Definition at line 121 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