Setup information for start position in GoBoard. More...
#include <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 |
Setup information for start position in GoBoard.
Definition at line 16 of file GoSetup.h.
GoSetup::GoSetup | ( | ) |
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!=().
Definition at line 21 of file GoSetup.h.
Referenced by GoSetupUtil::CurrentPosSetup(), GoBoardUtil::DumpBoard(), GoBoard::Init(), IsEmpty(), operator==(), and GoBoardUpdater::Update().
Definition at line 19 of file GoSetup.h.
Referenced by AddBlack(), AddWhite(), GoSetupUtil::CreateSetupFromStream(), GoSetupUtil::CurrentPosSetup(), GoBoardUtil::DumpBoard(), GoBoard::Init(), IsEmpty(), operator==(), and GoBoardUpdater::Update().