棋譜の記録 More...
#include <csaLogger.h>
Public Member Functions | |
CsaLogger (std::ostream &os) | |
~CsaLogger () | |
void | init (const char *black, const char *white, const state::SimpleState &state) |
void | pushMove (const Move &move, int seconds) |
void | pushMove (const search::MoveWithComment &move, int seconds) |
void | popMove () |
void | showTimeLeft (const TimeKeeper &) |
void | writeComment (const char *comment) |
void | resign (Player resigned) |
void | inputError (const char *) |
void | breakGame () |
void | endByRepetition (const Sennichite &) |
void | endByDeclaration (Player declarer) |
Private Member Functions | |
void | writeLine (const char *line) |
void | writeWinner (Player winner) |
void | writeCurrentDate () |
Private Attributes | |
std::ostream & | output |
棋譜の記録
Definition at line 26 of file csaLogger.h.
|
explicit |
Definition at line 14 of file csaLogger.cc.
osl::game_playing::CsaLogger::~CsaLogger | ( | ) |
Definition at line 19 of file csaLogger.cc.
void osl::game_playing::CsaLogger::breakGame | ( | ) |
Definition at line 104 of file csaLogger.cc.
void osl::game_playing::CsaLogger::endByDeclaration | ( | Player | declarer) |
Definition at line 123 of file csaLogger.cc.
void osl::game_playing::CsaLogger::endByRepetition | ( | const Sennichite & | result) |
Definition at line 110 of file csaLogger.cc.
References osl::Sennichite::hasWinner(), osl::Sennichite::isNormal(), and osl::Sennichite::winner().
void osl::game_playing::CsaLogger::init | ( | const char * | black, |
const char * | white, | ||
const state::SimpleState & | state | ||
) |
Definition at line 24 of file csaLogger.cc.
void osl::game_playing::CsaLogger::inputError | ( | const char * | message) |
Definition at line 98 of file csaLogger.cc.
void osl::game_playing::CsaLogger::popMove | ( | ) |
Definition at line 57 of file csaLogger.cc.
void osl::game_playing::CsaLogger::pushMove | ( | const Move & | move, |
int | seconds | ||
) |
Definition at line 34 of file csaLogger.cc.
References osl::csaShow().
void osl::game_playing::CsaLogger::pushMove | ( | const search::MoveWithComment & | move, |
int | seconds | ||
) |
void osl::game_playing::CsaLogger::resign | ( | Player | resigned) |
Definition at line 90 of file csaLogger.cc.
References osl::alt().
void osl::game_playing::CsaLogger::showTimeLeft | ( | const TimeKeeper & | keeper) |
Definition at line 63 of file csaLogger.cc.
References osl::BLACK, osl::game_playing::TimeKeeper::timeLeft(), and osl::WHITE.
void osl::game_playing::CsaLogger::writeComment | ( | const char * | comment) |
Definition at line 76 of file csaLogger.cc.
|
private |
Definition at line 82 of file csaLogger.cc.
References osl::ctime_r().
|
private |
Definition at line 70 of file csaLogger.cc.
|
private |
Definition at line 131 of file csaLogger.cc.
|
private |
Definition at line 28 of file csaLogger.h.