Index   Main   Namespaces   Classes   Hierarchy   Annotated   Files   Compound   Global   Pages  

GoUctBookBuilderCommands< PLAYER > Class Template Reference

#include <GoUctBookBuilderCommands.h>

List of all members.


Detailed Description

template<class PLAYER>
class GoUctBookBuilderCommands< PLAYER >

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

GoBoardm_bd
GoPlayer *& m_player
boost::scoped_ptr< GoAutoBook > & m_book
GoUctBookBuilder< PLAYER > m_bookBuilder


Constructor & Destructor Documentation

template<class PLAYER>
GoUctBookBuilderCommands< PLAYER >::GoUctBookBuilderCommands ( GoBoard bd,
GoPlayer *&  player,
boost::scoped_ptr< GoAutoBook > &  book 
)

Constructor.

Parameters:
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.


Member Function Documentation

template<class PLAYER>
void GoUctBookBuilderCommands< PLAYER >::AddGoGuiAnalyzeCommands ( GtpCommand cmd  ) 

Definition at line 95 of file GoUctBookBuilderCommands.h.

template<class PLAYER>
void GoUctBookBuilderCommands< PLAYER >::CmdClose ( GtpCommand cmd  ) 

Definition at line 187 of file GoUctBookBuilderCommands.h.

References GtpCommand::CheckArgNone(), and GoUctBookBuilderCommands< PLAYER >::m_book.

template<class PLAYER>
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().

template<class PLAYER>
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().

template<class 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.

template<class PLAYER>
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().

template<class PLAYER>
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().

template<class PLAYER>
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().

template<class 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().

template<class PLAYER>
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().

template<class PLAYER>
void GoUctBookBuilderCommands< PLAYER >::Register ( GtpEngine e,
const std::string &  command,
typename GtpCallback< GoUctBookBuilderCommands< PLAYER > >::Method  method 
) [private]

Definition at line 128 of file GoUctBookBuilderCommands.h.

References GtpEngine::Register().

template<class PLAYER>
void GoUctBookBuilderCommands< PLAYER >::Register ( GtpEngine engine  ) 

Definition at line 109 of file GoUctBookBuilderCommands.h.

template<class PLAYER>
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().


Member Data Documentation

template<class PLAYER>
GoBoard& GoUctBookBuilderCommands< PLAYER >::m_bd [private]

Definition at line 65 of file GoUctBookBuilderCommands.h.

Referenced by GoUctBookBuilderCommands< PLAYER >::CmdCounts(), GoUctBookBuilderCommands< PLAYER >::CmdPriority(), GoUctBookBuilderCommands< PLAYER >::CmdScores(), and GoUctBookBuilderCommands< PLAYER >::ShowInfluence().

template<class PLAYER>
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().

template<class PLAYER>
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().

template<class PLAYER>
GoPlayer*& GoUctBookBuilderCommands< PLAYER >::m_player [private]

Definition at line 67 of file GoUctBookBuilderCommands.h.

Referenced by GoUctBookBuilderCommands< PLAYER >::Player().


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


17 Jun 2010 Doxygen 1.4.7