Index   Main   Namespaces   Classes   Hierarchy   Annotated   Files   Compound   Global   Pages  
Public Types | Public Member Functions | Public Attributes | Static Public Attributes

GoUctBoard::Block Struct Reference

Data related to a block of stones on the board. More...

List of all members.

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.

Detailed Description

Data related to a block of stones on the board.

Definition at line 271 of file GoUctBoard.h.


Member Typedef Documentation

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.


Member Function Documentation

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 
)

Member Data Documentation

const int GoUctBoard::Block::MAX_LIBERTIES = (SG_MAX_SIZE / 3) * 2 * SG_MAX_SIZE [static]

Upper limit for liberties.

Proof?

Definition at line 276 of file GoUctBoard.h.


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


Sun Mar 13 2011 Doxygen 1.7.1