My Project
|
局面を漢字でカラーで表示する. More...
#include <kanjiPrint.h>
Public Member Functions | |
KanjiPrint (std::ostream &os, const std::shared_ptr< Characters > pieces=std::shared_ptr< Characters >(new StandardCharacters())) | |
~KanjiPrint () | |
void | print (const SimpleState &state, const Move *last_move=NULL) const |
出力 | |
void | setBlackColor (const Color &c) |
void | setWhiteColor (const Color &c) |
void | setLastMoveColor (const Color &c) |
Private Attributes | |
std::ostream & | os |
const std::shared_ptr< Characters > | pieces |
Color | black_color |
Color | white_color |
Color | last_move_color |
局面を漢字でカラーで表示する.
Definition at line 184 of file kanjiPrint.h.
|
inlineexplicit |
Definition at line 194 of file kanjiPrint.h.
|
inline |
Definition at line 200 of file kanjiPrint.h.
void osl::record::KanjiPrint::print | ( | const SimpleState & | state, |
const Move * | last_move = NULL |
||
) | const |
出力
state | a state to show. |
last_move | a color last_move is available unless it is null. |
Definition at line 175 of file kanjiPrint.cc.
References osl::BLACK, osl::SimpleState::countPiecesOnStand(), osl::misc::eucToLang(), osl::getOwner(), osl::Move::isInvalid(), osl::isPiece(), K_BLACK_STAND, K_WHITE_STAND, osl::newPtypeO(), osl::PieceStand::order, osl::SimpleState::pieceOnBoard(), osl::Move::to(), osl::SimpleState::turn(), and osl::WHITE.
|
inline |
Definition at line 210 of file kanjiPrint.h.
References black_color.
|
inline |
Definition at line 212 of file kanjiPrint.h.
References last_move_color.
|
inline |
Definition at line 211 of file kanjiPrint.h.
References white_color.
|
private |
Definition at line 189 of file kanjiPrint.h.
Referenced by setBlackColor().
|
private |
Definition at line 191 of file kanjiPrint.h.
Referenced by setLastMoveColor().
|
private |
Definition at line 187 of file kanjiPrint.h.
|
private |
Definition at line 188 of file kanjiPrint.h.
|
private |
Definition at line 190 of file kanjiPrint.h.
Referenced by setWhiteColor().