局面を漢字でカラーで表示する. [詳細]
#include <kanjiPrint.h>
Public メソッド | |
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 変数 | |
std::ostream & | os |
const std::shared_ptr< Characters > | pieces |
Color | black_color |
Color | white_color |
Color | last_move_color |
局面を漢字でカラーで表示する.
kanjiPrint.h の 184 行で定義されています。
osl::record::KanjiPrint::KanjiPrint | ( | std::ostream & | os, | |
const std::shared_ptr< Characters > | pieces = std::shared_ptr<Characters>(new StandardCharacters()) | |||
) | [inline, explicit] |
kanjiPrint.h の 194 行で定義されています。
osl::record::KanjiPrint::~KanjiPrint | ( | ) | [inline] |
kanjiPrint.h の 200 行で定義されています。
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. |
kanjiPrint.cc の 176 行で定義されています。
参照先 osl::BLACK, black_color, osl::SimpleState::countPiecesOnStand(), osl::misc::eucToLang(), osl::getOwner(), osl::Move::isInvalid(), osl::isPiece(), K_BLACK_STAND, K_WHITE_STAND, last_move_color, osl::newPtypeO(), osl::PieceStand::order, os, osl::SimpleState::pieceOnBoard(), pieces, osl::Piece::ptypeO(), osl::Move::to(), osl::SimpleState::turn(), osl::WHITE, と white_color.
void osl::record::KanjiPrint::setBlackColor | ( | const Color & | c | ) | [inline] |
kanjiPrint.h の 210 行で定義されています。
参照先 black_color.
void osl::record::KanjiPrint::setLastMoveColor | ( | const Color & | c | ) | [inline] |
kanjiPrint.h の 212 行で定義されています。
参照先 last_move_color.
void osl::record::KanjiPrint::setWhiteColor | ( | const Color & | c | ) | [inline] |
kanjiPrint.h の 211 行で定義されています。
参照先 white_color.
Color osl::record::KanjiPrint::black_color [private] |
kanjiPrint.h の 189 行で定義されています。
参照元 print(), と setBlackColor().
kanjiPrint.h の 191 行で定義されています。
参照元 print(), と setLastMoveColor().
std::ostream& osl::record::KanjiPrint::os [private] |
kanjiPrint.h の 187 行で定義されています。
参照元 print().
const std::shared_ptr<Characters> osl::record::KanjiPrint::pieces [private] |
kanjiPrint.h の 188 行で定義されています。
参照元 print().
Color osl::record::KanjiPrint::white_color [private] |
kanjiPrint.h の 190 行で定義されています。
参照元 print(), と setWhiteColor().