#include <GoAutoBook.h>
Definition at line 22 of file GoAutoBook.h.
Public Member Functions | |
| GoAutoBookState (const GoBoard &brd) | |
| ~GoAutoBookState () | |
| GoBoard & | Board () |
| const GoBoard & | Board () const |
| void | Play (SgMove move) |
| void | Undo () |
| SgHashCode | GetHashCode () const |
| void | Synchronize () |
Private Member Functions | |
| void | ComputeHashCode () |
Private Attributes | |
| GoBoardSynchronizer | m_synchronizer |
| GoBoard | m_brd [8] |
| SgHashCode | m_hash |
| GoAutoBookState::GoAutoBookState | ( | const GoBoard & | brd | ) |
Definition at line 10 of file GoAutoBook.cpp.
References m_brd, m_synchronizer, and GoBoardSynchronizer::SetSubscriber().
| GoAutoBookState::~GoAutoBookState | ( | ) |
Definition at line 16 of file GoAutoBook.cpp.
| const GoBoard & GoAutoBookState::Board | ( | ) | const |
| GoBoard & GoAutoBookState::Board | ( | ) |
Definition at line 51 of file GoAutoBook.h.
References m_brd.
Referenced by GoAutoBook::FindBestChild().
| void GoAutoBookState::ComputeHashCode | ( | ) | [private] |
Definition at line 57 of file GoAutoBook.cpp.
References GoBoard::GetHashCodeInclToPlay(), m_brd, and m_hash.
Referenced by Play(), Synchronize(), and Undo().
| SgHashCode GoAutoBookState::GetHashCode | ( | ) | const |
Definition at line 20 of file GoAutoBook.cpp.
References m_hash.
Referenced by GoAutoBook::Get(), and GoAutoBook::Put().
| void GoAutoBookState::Play | ( | SgMove | move | ) |
Definition at line 42 of file GoAutoBook.cpp.
References ComputeHashCode(), GoBoard::GetHashCodeInclToPlay(), m_brd, m_hash, and SgPointUtil::Rotate().
Referenced by GoAutoBook::FindBestChild().
| void GoAutoBookState::Synchronize | ( | ) |
Definition at line 25 of file GoAutoBook.cpp.
References ComputeHashCode(), Init(), m_brd, m_synchronizer, GoBoard::MoveNumber(), GoBoard::Play(), SgPointUtil::Rotate(), GoBoard::Size(), and GoBoardSynchronizer::UpdateSubscriber().
Referenced by GoAutoBook::LookupMove().
| void GoAutoBookState::Undo | ( | ) |
Definition at line 50 of file GoAutoBook.cpp.
References ComputeHashCode(), and m_brd.
Referenced by GoAutoBook::FindBestChild().
GoBoard GoAutoBookState::m_brd[8] [private] |
Definition at line 44 of file GoAutoBook.h.
Referenced by Board(), ComputeHashCode(), GoAutoBookState(), Play(), Synchronize(), and Undo().
SgHashCode GoAutoBookState::m_hash [private] |
Definition at line 46 of file GoAutoBook.h.
Referenced by ComputeHashCode(), GetHashCode(), and Play().