Main   Namespaces   Classes   Hierarchy   Annotated   Files   Compound   Global   Pages  

HexState Class Reference

Board position paired with a color to play. More...

#include <HexState.hpp>

List of all members.

Public Member Functions

 HexState ()
 HexState (unsigned size)
 HexState (const StoneBoard &brd, HexColor toPlay)
StoneBoardPosition ()
const StoneBoardPosition () const
void SetToPlay (HexColor color)
HexColor ToPlay () const
hash_t Hash () const
void PlayMove (HexPoint move)
void UndoMove (HexPoint move)

Private Member Functions

void FlipColorToPlay ()

Private Attributes

StoneBoard m_brd
HexColor m_toPlay

Detailed Description

Board position paired with a color to play.

Definition at line 17 of file HexState.hpp.


Constructor & Destructor Documentation

HexState::HexState (  )  [inline]

Definition at line 48 of file HexState.hpp.

HexState::HexState ( unsigned  size  )  [inline]

Definition at line 52 of file HexState.hpp.

HexState::HexState ( const StoneBoard brd,
HexColor  toPlay 
) [inline]

Definition at line 58 of file HexState.hpp.


Member Function Documentation

void HexState::FlipColorToPlay (  )  [inline, private]

Definition at line 101 of file HexState.hpp.

References m_toPlay.

Referenced by PlayMove(), and UndoMove().

hash_t HexState::Hash (  )  const [inline]
void HexState::PlayMove ( HexPoint  move  )  [inline]
const StoneBoard & HexState::Position (  )  const [inline]

Definition at line 69 of file HexState.hpp.

References m_brd.

StoneBoard & HexState::Position (  )  [inline]
void HexState::SetToPlay ( HexColor  color  )  [inline]

Definition at line 74 of file HexState.hpp.

References m_toPlay.

HexColor HexState::ToPlay (  )  const [inline]
void HexState::UndoMove ( HexPoint  move  )  [inline]

Member Data Documentation

Definition at line 41 of file HexState.hpp.

Referenced by Hash(), PlayMove(), Position(), and UndoMove().

Definition at line 43 of file HexState.hpp.

Referenced by FlipColorToPlay(), Hash(), PlayMove(), SetToPlay(), and ToPlay().


The documentation for this class was generated from the following file:


6 Jan 2011 Doxygen 1.6.3