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

FCSDebugState Class Reference

Debug representation of a state.

#include <FCDebugState.h>

Inheritance diagram for FCSDebugState:

FCSState List of all members.

Public Member Functions

 FCSDebugState ()
 Constructor.
int GetClassSize ()
int StackCompare (int StackPosition1, int StackPosition2)
 Compare two cards on the stack.
int Compare (FCSDebugState *State)
 Compare two FCSDebugStates.

Public Attributes

FCSDebugStack m_Stacks [MAX_NUM_STACKS]
 Stacks of cards in the state.
FCSDebugCard m_Freecells [MAX_NUM_FREECELLS]
 Freecells in the state.
char m_Foundations [MAX_NUM_DECKS *4]
 Foundations in the state.

Detailed Description

Definition at line 119 of file FCDebugState.h.


Member Function Documentation

int FCSDebugState::Compare FCSDebugState State  ) 
 

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

Definition at line 121 of file FCDebugState.cpp.

References m_Foundations, m_Freecells, and m_Stacks.

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

int FCSDebugState::GetClassSize  )  [virtual]
 

Returns:
Size of FCSDebugState

Implements FCSState.

Definition at line 108 of file FCDebugState.cpp.

int FCSDebugState::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 113 of file FCDebugState.cpp.

References FCSCard::Compare(), FCSDebugStack::m_Cards, and m_Stacks.

Referenced by FCSDebugStateWithLocations< 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