#include <csaClient.h>
Public Member Functions | |
CsaClient (ComputerPlayer *black, ComputerPlayer *white, CsaLogger *l, std::istream &, std::ostream &) | |
~CsaClient () | |
void | setShowMoveWithComment (bool value=true) |
void | setSilent (bool new_value=true) |
Private Member Functions | |
bool | readAndProcessCommand () |
void | processComputerMove (const search::MoveWithComment &, int seconds) |
Private Attributes | |
bool | show_move_with_comment |
bool | silent |
std::string | line |
Definition at line 11 of file csaClient.h.
osl::game_playing::CsaClient::CsaClient | ( | ComputerPlayer * | black, |
ComputerPlayer * | white, | ||
CsaLogger * | l, | ||
std::istream & | is, | ||
std::ostream & | os | ||
) |
Definition at line 18 of file csaClient.cc.
References osl::game_playing::GameManager::setComputerPlayer(), and osl::WHITE.
Definition at line 27 of file csaClient.cc.
void osl::game_playing::CsaClient::processComputerMove | ( | const search::MoveWithComment & | , |
int | seconds | ||
) | [private, virtual] |
Implements osl::game_playing::CuiClient.
Definition at line 133 of file csaClient.cc.
References osl::Move::DeclareWin(), osl::Sennichite::isNormal(), osl::Move::isNormal(), osl::Move::move, result, and osl::record::csa::show().
bool osl::game_playing::CsaClient::readAndProcessCommand | ( | ) | [private, virtual] |
Implements osl::game_playing::CuiClient.
Definition at line 32 of file csaClient.cc.
References osl::BLACK, osl::ctime_r(), osl::Sennichite::isNormal(), osl::game_playing::GameState::OTHER_INVALID, osl::game_playing::GameState::PAWN_DROP_FOUL, osl::game_playing::CsaStopwatch::read(), result, osl::record::csa::show(), osl::record::csa::strToMove(), timer, osl::game_playing::GameState::UNSAFE_KING, and osl::WHITE.
void osl::game_playing::CsaClient::setShowMoveWithComment | ( | bool | value = true | ) |
Definition at line 127 of file csaClient.cc.
void osl::game_playing::CsaClient::setSilent | ( | bool | new_value = true | ) | [inline] |
Definition at line 22 of file csaClient.h.
References silent.
std::string osl::game_playing::CsaClient::line [private] |
Definition at line 15 of file csaClient.h.
bool osl::game_playing::CsaClient::show_move_with_comment [private] |
Definition at line 13 of file csaClient.h.
bool osl::game_playing::CsaClient::silent [private] |
Definition at line 14 of file csaClient.h.
Referenced by setSilent().