Index   Main   Namespaces   Classes   Hierarchy   Annotated   Files   Compound   Global   Pages  

GoSetup Class Reference

#include <GoSetup.h>

List of all members.


Detailed Description

Setup information for start position in GoBoard.

Definition at line 17 of file GoSetup.h.

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


Constructor & Destructor Documentation

GoSetup::GoSetup (  ) 

Create empty setup.

Contains no setup stones. Black is to move.

Definition at line 47 of file GoSetup.h.


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 62 of file GoSetup.h.

References m_stones, and SG_BLACK.

Referenced by GoGtpEngine::CmdPlaceFreeHandicap().

void GoSetup::AddWhite ( SgPoint  p  ) 

Add a black stone.

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

Definition at line 67 of file GoSetup.h.

References m_stones, and SG_WHITE.

bool GoSetup::IsEmpty (  )  const

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

Definition at line 72 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 57 of file GoSetup.h.

References operator==().

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

Definition at line 52 of file GoSetup.h.

References m_player, and m_stones.

Referenced by operator!=().


Member Data Documentation

SgBlackWhite GoSetup::m_player

Definition at line 22 of file GoSetup.h.

Referenced by GoSetupUtil::CurrentPosSetup(), GoBoardUtil::DumpBoard(), IsEmpty(), operator==(), and GoBoardUpdater::Update().

SgBWSet GoSetup::m_stones

Definition at line 20 of file GoSetup.h.

Referenced by AddBlack(), AddWhite(), GoSetupUtil::CreateSetupFromStream(), GoSetupUtil::CurrentPosSetup(), GoBoardUtil::DumpBoard(), IsEmpty(), operator==(), and ReadLine().


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


17 Jun 2010 Doxygen 1.4.7