Definition at line 297 of file GoUctBoard.h.
Public Types | |
typedef SgSList< SgPoint, MAX_LIBERTIES > | LibertyList |
typedef LibertyList::Iterator | LibertyIterator |
typedef GoPointList::Iterator | StoneIterator |
Public Member Functions | |
void | InitSingleStoneBlock (SgBlackWhite c, SgPoint anchor) |
void | InitNewBlock (SgBlackWhite c, SgPoint anchor) |
Public Attributes | |
SgPoint | m_anchor |
SgBlackWhite | m_color |
LibertyList | m_liberties |
GoPointList | m_stones |
Static Public Attributes | |
static const int | MAX_LIBERTIES = (SG_MAX_SIZE / 3) * 2 * SG_MAX_SIZE |
Upper limit for liberties. |
Definition at line 307 of file GoUctBoard.h.
Definition at line 305 of file GoUctBoard.h.
Definition at line 309 of file GoUctBoard.h.
void GoUctBoard::Block::InitNewBlock | ( | SgBlackWhite | c, | |
SgPoint | anchor | |||
) |
Definition at line 328 of file GoUctBoard.h.
References SgSList< T, SIZE >::Clear(), m_anchor, m_color, m_liberties, m_stones, and SG_ASSERT_BW.
Referenced by GoUctBoard::Init().
void GoUctBoard::Block::InitSingleStoneBlock | ( | SgBlackWhite | c, | |
SgPoint | anchor | |||
) |
Definition at line 319 of file GoUctBoard.h.
References SgSList< T, SIZE >::Clear(), m_anchor, m_color, m_liberties, m_stones, SgSList< T, SIZE >::SetTo(), and SG_ASSERT_BW.
Referenced by GoUctBoard::CreateSingleStoneBlock().
Definition at line 311 of file GoUctBoard.h.
Referenced by GoUctBoard::AddLibToAdjBlocks(), GoUctBoard::CheckConsistencyBlock(), InitNewBlock(), InitSingleStoneBlock(), GoUctBoard::IsInBlock(), GoUctBoard::KillBlock(), and GoUctBoard::RemoveLibAndKill().
Definition at line 313 of file GoUctBoard.h.
Referenced by GoUctBoard::AddStoneToBlock(), GoUctBoard::CheckConsistencyBlock(), InitNewBlock(), InitSingleStoneBlock(), GoUctBoard::IsLibertyOfBlock(), GoUctBoard::KillBlock(), and GoUctBoard::RemoveLibAndKill().
Definition at line 315 of file GoUctBoard.h.
Referenced by GoUctBoard::AddLibToAdjBlocks(), GoUctBoard::AddStoneToBlock(), GoUctBoard::CheckConsistencyBlock(), GoUctBoard::CreateSingleStoneBlock(), GoUctBoard::Init(), InitNewBlock(), InitSingleStoneBlock(), GoUctBoard::MergeBlocks(), GoUctBoard::OccupiedInAtari(), and GoUctBoard::RemoveLibAndKill().
Definition at line 317 of file GoUctBoard.h.
Referenced by GoUctBoard::AddStoneToBlock(), GoUctBoard::CheckConsistencyBlock(), GoUctBoard::Init(), InitNewBlock(), InitSingleStoneBlock(), GoUctBoard::KillBlock(), and GoUctBoard::MergeBlocks().
const int GoUctBoard::Block::MAX_LIBERTIES = (SG_MAX_SIZE / 3) * 2 * SG_MAX_SIZE [static] |