Index   Main   Namespaces   Classes   Hierarchy   Annotated   Files   Compound   Global   Pages  

GoUctBoard::Block Struct Reference

List of all members.

Detailed Description

Data related to a block of stones on the board.

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.


Member Typedef Documentation

typedef LibertyList::Iterator GoUctBoard::Block::LibertyIterator

Definition at line 307 of file GoUctBoard.h.

typedef SgSList<SgPoint,MAX_LIBERTIES> GoUctBoard::Block::LibertyList

Definition at line 305 of file GoUctBoard.h.

typedef GoPointList::Iterator GoUctBoard::Block::StoneIterator

Definition at line 309 of file GoUctBoard.h.


Member Function Documentation

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().


Member Data Documentation

SgPoint GoUctBoard::Block::m_anchor

Definition at line 311 of file GoUctBoard.h.

Referenced by GoUctBoard::AddLibToAdjBlocks(), GoUctBoard::CheckConsistencyBlock(), InitNewBlock(), InitSingleStoneBlock(), GoUctBoard::IsInBlock(), GoUctBoard::KillBlock(), and GoUctBoard::RemoveLibAndKill().

SgBlackWhite GoUctBoard::Block::m_color

Definition at line 313 of file GoUctBoard.h.

Referenced by GoUctBoard::AddStoneToBlock(), GoUctBoard::CheckConsistencyBlock(), InitNewBlock(), InitSingleStoneBlock(), GoUctBoard::IsLibertyOfBlock(), GoUctBoard::KillBlock(), and GoUctBoard::RemoveLibAndKill().

LibertyList GoUctBoard::Block::m_liberties

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().

GoPointList GoUctBoard::Block::m_stones

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]

Upper limit for liberties.

Proof?

Definition at line 303 of file GoUctBoard.h.


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


17 Jun 2010 Doxygen 1.4.7