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

GoSetup Class Reference

Setup information for start position in GoBoard. More...

#include <GoSetup.h>

List of all members.

Public Member Functions

 GoSetup ()
 Create empty setup.
bool operator== (const GoSetup &setup) const
bool operator!= (const GoSetup &setup) const
void AddBlack (SgPoint p)
 Add a black stone.
void AddWhite (SgPoint p)
 Add a black stone.
bool IsEmpty () const
 Does the setup contain no setup stones and is the player Black.

Public Attributes

SgBWSet m_stones
SgBlackWhite m_player

Detailed Description

Setup information for start position in GoBoard.

Definition at line 16 of file GoSetup.h.


Constructor & Destructor Documentation

GoSetup::GoSetup (  ) 

Create empty setup.

Contains no setup stones. Black is to move.

Definition at line 43 of file GoSetup.h.

References SG_BLACK.


Member Function Documentation

void GoSetup::AddBlack ( SgPoint  p  ) 

Add a black stone.

Convenience function. Equivalent to m_stones[SG_BLACK].Include(p)

Definition at line 58 of file GoSetup.h.

References m_stones, and SG_BLACK.

Referenced by GoGtpEngine::CmdPlaceFreeHandicap(), and GoBoardUpdater::Update().

void GoSetup::AddWhite ( SgPoint  p  ) 

Add a black stone.

Convenience function. Equivalent to m_stones[SG_WHITE].Include(p)

Definition at line 63 of file GoSetup.h.

References m_stones, and SG_WHITE.

Referenced by GoBoardUpdater::Update().

bool GoSetup::IsEmpty (  )  const

Does the setup contain no setup stones and is the player Black.

Definition at line 68 of file GoSetup.h.

References SgBWSet::BothEmpty(), m_player, m_stones, and SG_BLACK.

Referenced by GoBoardUtil::DumpBoard().

bool GoSetup::operator!= ( const GoSetup setup  )  const

Definition at line 53 of file GoSetup.h.

References operator==().

bool GoSetup::operator== ( const GoSetup setup  )  const

Definition at line 48 of file GoSetup.h.

References m_player, and m_stones.

Referenced by operator!=().


Member Data Documentation


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


Sun Mar 13 2011 Doxygen 1.7.1