Copyable worker. More...
Public Member Functions | |
Worker (std::size_t id, BenzenePlayer &player, HexBoard &brd) | |
void | SetState (const HexState &state) |
float | operator() (const SgMove &move) |
Private Attributes | |
std::size_t | m_id |
HexBoard * | m_brd |
BenzenePlayer * | m_player |
HexState | m_state |
Copyable worker.
Definition at line 124 of file BookBuilder.hpp.
BookBuilder< PLAYER >::Worker::Worker | ( | std::size_t | id, | |
BenzenePlayer & | player, | |||
HexBoard & | brd | |||
) | [inline] |
Definition at line 291 of file BookBuilder.hpp.
float BookBuilder< PLAYER >::Worker::operator() | ( | const SgMove & | move | ) | [inline] |
Definition at line 307 of file BookBuilder.hpp.
References BenzenePlayer::GenMove(), HexBoard::GetPosition(), HexEval, LogInfo(), BookBuilder< PLAYER >::Worker::m_brd, BookBuilder< PLAYER >::Worker::m_player, BookBuilder< PLAYER >::Worker::m_state, HexState::PlayMove(), HexState::Position(), and StoneBoard::SetPosition().
void BookBuilder< PLAYER >::Worker::SetState | ( | const HexState & | state | ) | [inline] |
Definition at line 301 of file BookBuilder.hpp.
References BookBuilder< PLAYER >::Worker::m_state.
HexBoard* BookBuilder< PLAYER >::Worker::m_brd [private] |
Definition at line 137 of file BookBuilder.hpp.
Referenced by BookBuilder< PLAYER >::Worker::operator()().
std::size_t BookBuilder< PLAYER >::Worker::m_id [private] |
Definition at line 135 of file BookBuilder.hpp.
BenzenePlayer* BookBuilder< PLAYER >::Worker::m_player [private] |
Definition at line 139 of file BookBuilder.hpp.
Referenced by BookBuilder< PLAYER >::Worker::operator()().
HexState BookBuilder< PLAYER >::Worker::m_state [private] |
Definition at line 141 of file BookBuilder.hpp.
Referenced by BookBuilder< PLAYER >::Worker::operator()(), and BookBuilder< PLAYER >::Worker::SetState().