#include <GoSetup.h>
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 |
GoSetup::GoSetup | ( | ) |
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 | ) |
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 |
bool GoSetup::operator== | ( | const GoSetup & | setup | ) | const |
Definition at line 52 of file GoSetup.h.
References m_player, and m_stones.
Referenced by operator!=().
Definition at line 22 of file GoSetup.h.
Referenced by GoSetupUtil::CurrentPosSetup(), GoBoardUtil::DumpBoard(), IsEmpty(), operator==(), and GoBoardUpdater::Update().
Definition at line 20 of file GoSetup.h.
Referenced by AddBlack(), AddWhite(), GoSetupUtil::CreateSetupFromStream(), GoSetupUtil::CurrentPosSetup(), GoBoardUtil::DumpBoard(), IsEmpty(), operator==(), and ReadLine().