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

FCSCompactState Class Reference

Compact representation of a state.

#include <FCCompactState.h>

Inheritance diagram for FCSCompactState:

FCSState List of all members.

Public Member Functions

int GetClassSize ()
 Get the size of FCSCompactState class.
int StackCompare (int StackPosition1, int StackPosition2)
 Compare two cards on the stack.
int Compare (FCSCompactState *State)
 Compare two FCSCompactStates.

Public Attributes

FCSCompactCard m_Data [MAX_NUM_STACKS *(MAX_NUM_CARDS_IN_A_STACK+1)+MAX_NUM_FREECELLS+4 *MAX_NUM_DECKS]
 State data - a large array of cards.

Detailed Description

Definition at line 100 of file FCCompactState.h.


Member Function Documentation

int FCSCompactState::Compare FCSCompactState State  ) 
 

Parameters:
State to be compared to
Returns:
-1 if this state < State, 1 if state > State, 0 if state = State

Definition at line 87 of file FCCompactState.cpp.

References m_Data.

Referenced by FCSCompactStateWithLocations< StateWithLocation >::Compare().

int FCSCompactState::GetClassSize  )  [virtual]
 

Returns:
Size of FCSCompactState

Implements FCSState.

Definition at line 74 of file FCCompactState.cpp.

int FCSCompactState::StackCompare int  StackPosition1,
int  StackPosition2
 

Parameters:
StackPosition1 is the stack position of the first card
StackPosition2 is the stack position of the second card
Returns:
-1 if this card1 < card2, 1 if card1 > card2, 0 if card1 = Card2

Definition at line 79 of file FCCompactState.cpp.

References FCSCard::Compare(), and m_Data.

Referenced by FCSCompactStateWithLocations< StateWithLocation >::CanonizeState().


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