Data related to a block of stones on the board. More...
Public Types | |
typedef SgArrayList< 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. |
Data related to a block of stones on the board.
Definition at line 271 of file GoUctBoard.h.
typedef LibertyList::Iterator GoUctBoard::Block::LibertyIterator |
Definition at line 280 of file GoUctBoard.h.
Definition at line 278 of file GoUctBoard.h.
typedef GoPointList::Iterator GoUctBoard::Block::StoneIterator |
Definition at line 282 of file GoUctBoard.h.
void GoUctBoard::Block::InitNewBlock | ( | SgBlackWhite | c, | |
SgPoint | anchor | |||
) |
Definition at line 301 of file GoUctBoard.h.
References SgArrayList< 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 292 of file GoUctBoard.h.
References SgArrayList< T, SIZE >::Clear(), m_anchor, m_color, m_liberties, m_stones, SgArrayList< T, SIZE >::SetTo(), and SG_ASSERT_BW.
Referenced by GoUctBoard::CreateSingleStoneBlock().
Definition at line 284 of file GoUctBoard.h.
Referenced by GoUctBoard::AddLibToAdjBlocks(), GoUctBoard::CheckConsistencyBlock(), InitNewBlock(), InitSingleStoneBlock(), GoUctBoard::IsInBlock(), GoUctBoard::KillBlock(), and GoUctBoard::RemoveLibAndKill().
Definition at line 286 of file GoUctBoard.h.
Referenced by GoUctBoard::AddStoneToBlock(), GoUctBoard::CheckConsistencyBlock(), InitNewBlock(), InitSingleStoneBlock(), GoUctBoard::IsLibertyOfBlock(), GoUctBoard::KillBlock(), and GoUctBoard::RemoveLibAndKill().
Definition at line 288 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 290 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] |