#include <GoUctBookBuilderCommands.h>
Definition at line 25 of file GoUctBookBuilderCommands.h.
Public Member Functions | |
GoUctBookBuilderCommands (GoBoard &bd, GoPlayer *&player, boost::scoped_ptr< GoAutoBook > &book) | |
Constructor. | |
void | AddGoGuiAnalyzeCommands (GtpCommand &cmd) |
void | Register (GtpEngine &engine) |
Command Callbacks | |
void | CmdOpen (GtpCommand &cmd) |
void | CmdClose (GtpCommand &cmd) |
void | CmdExpand (GtpCommand &cmd) |
void | CmdRefresh (GtpCommand &cmd) |
void | CmdParam (GtpCommand &cmd) |
void | CmdScores (GtpCommand &cmd) |
void | CmdCounts (GtpCommand &cmd) |
void | CmdPriority (GtpCommand &cmd) |
Private Member Functions | |
PLAYER & | Player () |
void | Register (GtpEngine &e, const std::string &command, typename GtpCallback< GoUctBookBuilderCommands >::Method method) |
void | ShowInfluence (GtpCommand &cmd, GoAutoBookState &state) |
Private Attributes | |
GoBoard & | m_bd |
GoPlayer *& | m_player |
boost::scoped_ptr< GoAutoBook > & | m_book |
GoUctBookBuilder< PLAYER > | m_bookBuilder |
GoUctBookBuilderCommands< PLAYER >::GoUctBookBuilderCommands | ( | GoBoard & | bd, | |
GoPlayer *& | player, | |||
boost::scoped_ptr< GoAutoBook > & | book | |||
) |
Constructor.
bd | The game board. | |
player | Reference to pointer to current player, this player can be null or a different player, but those commands of this class that need a GoUctPlayer will fail, if the current player is not a PLAYER. |
Definition at line 85 of file GoUctBookBuilderCommands.h.
void GoUctBookBuilderCommands< PLAYER >::AddGoGuiAnalyzeCommands | ( | GtpCommand & | cmd | ) |
Definition at line 95 of file GoUctBookBuilderCommands.h.
void GoUctBookBuilderCommands< PLAYER >::CmdClose | ( | GtpCommand & | cmd | ) |
Definition at line 187 of file GoUctBookBuilderCommands.h.
References GtpCommand::CheckArgNone(), and GoUctBookBuilderCommands< PLAYER >::m_book.
void GoUctBookBuilderCommands< PLAYER >::CmdCounts | ( | GtpCommand & | cmd | ) |
Definition at line 289 of file GoUctBookBuilderCommands.h.
References GtpCommand::CheckArgNone(), GoBoard::IsLegal(), GoUctBookBuilderCommands< PLAYER >::m_bd, GoUctBookBuilderCommands< PLAYER >::m_book, SgBookNode::m_count, GoAutoBookState::Play(), GoUctBookBuilderCommands< PLAYER >::ShowInfluence(), GoAutoBookState::Synchronize(), and GoAutoBookState::Undo().
void GoUctBookBuilderCommands< PLAYER >::CmdExpand | ( | GtpCommand & | cmd | ) |
Definition at line 194 of file GoUctBookBuilderCommands.h.
References GtpCommand::CheckNuArg(), GtpCommand::IntArg(), GoUctBookBuilderCommands< PLAYER >::m_book, GoUctBookBuilderCommands< PLAYER >::m_bookBuilder, and GoUctBookBuilderCommands< PLAYER >::Player().
void GoUctBookBuilderCommands< PLAYER >::CmdOpen | ( | GtpCommand & | cmd | ) |
Definition at line 180 of file GoUctBookBuilderCommands.h.
References GtpCommand::Arg(), GtpCommand::CheckNuArg(), and GoUctBookBuilderCommands< PLAYER >::m_book.
void GoUctBookBuilderCommands< PLAYER >::CmdParam | ( | GtpCommand & | cmd | ) |
Definition at line 217 of file GoUctBookBuilderCommands.h.
References GtpCommand::Arg(), GtpCommand::BoolArg(), GtpCommand::FloatArg(), GtpCommand::IntArg(), GoUctBookBuilderCommands< PLAYER >::m_bookBuilder, GtpCommand::NuArg(), and GtpCommand::SizeTypeArg().
void GoUctBookBuilderCommands< PLAYER >::CmdPriority | ( | GtpCommand & | cmd | ) |
Definition at line 313 of file GoUctBookBuilderCommands.h.
References GtpCommand::CheckArgNone(), GoBoard::IsLegal(), GoUctBookBuilderCommands< PLAYER >::m_bd, GoUctBookBuilderCommands< PLAYER >::m_book, GoUctBookBuilderCommands< PLAYER >::m_bookBuilder, SgBookNode::m_priority, SgBookNode::m_value, GoAutoBookState::Play(), GoUctBookBuilderCommands< PLAYER >::ShowInfluence(), GoAutoBookState::Synchronize(), and GoAutoBookState::Undo().
void GoUctBookBuilderCommands< PLAYER >::CmdRefresh | ( | GtpCommand & | cmd | ) |
Definition at line 206 of file GoUctBookBuilderCommands.h.
References GtpCommand::CheckArgNone(), GoUctBookBuilderCommands< PLAYER >::m_book, GoUctBookBuilderCommands< PLAYER >::m_bookBuilder, and GoUctBookBuilderCommands< PLAYER >::Player().
void GoUctBookBuilderCommands< PLAYER >::CmdScores | ( | GtpCommand & | cmd | ) |
Definition at line 260 of file GoUctBookBuilderCommands.h.
References GtpCommand::CheckArgNone(), GoBoard::IsLegal(), GoUctBookBuilderCommands< PLAYER >::m_bd, GoUctBookBuilderCommands< PLAYER >::m_book, GoUctBookBuilderCommands< PLAYER >::m_bookBuilder, GoAutoBookState::Play(), GoUctBookBuilderCommands< PLAYER >::ShowInfluence(), GoAutoBookState::Synchronize(), and GoAutoBookState::Undo().
PLAYER & GoUctBookBuilderCommands< PLAYER >::Player | ( | ) | [private] |
Definition at line 136 of file GoUctBookBuilderCommands.h.
References GoUctBookBuilderCommands< PLAYER >::m_player.
Referenced by GoUctBookBuilderCommands< PLAYER >::CmdExpand(), and GoUctBookBuilderCommands< PLAYER >::CmdRefresh().
void GoUctBookBuilderCommands< PLAYER >::Register | ( | GtpEngine & | e, | |
const std::string & | command, | |||
typename GtpCallback< GoUctBookBuilderCommands< PLAYER > >::Method | method | |||
) | [private] |
void GoUctBookBuilderCommands< PLAYER >::Register | ( | GtpEngine & | engine | ) |
Definition at line 109 of file GoUctBookBuilderCommands.h.
void GoUctBookBuilderCommands< PLAYER >::ShowInfluence | ( | GtpCommand & | cmd, | |
GoAutoBookState & | state | |||
) | [private] |
Definition at line 153 of file GoUctBookBuilderCommands.h.
References GoBoard::IsLegal(), GoUctBookBuilderCommands< PLAYER >::m_bd, GoUctBookBuilderCommands< PLAYER >::m_book, GoUctBookBuilderCommands< PLAYER >::m_bookBuilder, GoAutoBookState::Play(), SG_BLACK, GoBoard::ToPlay(), and GoAutoBookState::Undo().
Referenced by GoUctBookBuilderCommands< PLAYER >::CmdCounts(), GoUctBookBuilderCommands< PLAYER >::CmdPriority(), and GoUctBookBuilderCommands< PLAYER >::CmdScores().
GoBoard& GoUctBookBuilderCommands< PLAYER >::m_bd [private] |
boost::scoped_ptr<GoAutoBook>& GoUctBookBuilderCommands< PLAYER >::m_book [private] |
Definition at line 69 of file GoUctBookBuilderCommands.h.
Referenced by GoUctBookBuilderCommands< PLAYER >::CmdClose(), GoUctBookBuilderCommands< PLAYER >::CmdCounts(), GoUctBookBuilderCommands< PLAYER >::CmdExpand(), GoUctBookBuilderCommands< PLAYER >::CmdOpen(), GoUctBookBuilderCommands< PLAYER >::CmdPriority(), GoUctBookBuilderCommands< PLAYER >::CmdRefresh(), GoUctBookBuilderCommands< PLAYER >::CmdScores(), and GoUctBookBuilderCommands< PLAYER >::ShowInfluence().
GoUctBookBuilder<PLAYER> GoUctBookBuilderCommands< PLAYER >::m_bookBuilder [private] |
Definition at line 71 of file GoUctBookBuilderCommands.h.
Referenced by GoUctBookBuilderCommands< PLAYER >::CmdExpand(), GoUctBookBuilderCommands< PLAYER >::CmdParam(), GoUctBookBuilderCommands< PLAYER >::CmdPriority(), GoUctBookBuilderCommands< PLAYER >::CmdRefresh(), GoUctBookBuilderCommands< PLAYER >::CmdScores(), and GoUctBookBuilderCommands< PLAYER >::ShowInfluence().
GoPlayer*& GoUctBookBuilderCommands< PLAYER >::m_player [private] |
Definition at line 67 of file GoUctBookBuilderCommands.h.
Referenced by GoUctBookBuilderCommands< PLAYER >::Player().