局面を漢字でカラーで表示する. [詳細]
#include <kanjiPrint.h>
Public メソッド | |
KanjiPrint (std::ostream &os, const boost::shared_ptr< Characters > pieces=boost::shared_ptr< Characters >(new StandardCharacters())) | |
~KanjiPrint () | |
void | print (const osl::state::SimpleState &state, const osl::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 boost::shared_ptr < Characters > | pieces |
Color | black_color |
Color | white_color |
Color | last_move_color |
局面を漢字でカラーで表示する.
kanjiPrint.h の 182 行で定義されています。
osl::record::KanjiPrint::KanjiPrint | ( | std::ostream & | os, | |
const boost::shared_ptr< Characters > | pieces = boost::shared_ptr<Characters>(new StandardCharacters()) | |||
) | [inline, explicit] |
kanjiPrint.h の 192 行で定義されています。
osl::record::KanjiPrint::~KanjiPrint | ( | ) | [inline] |
kanjiPrint.h の 198 行で定義されています。
void osl::record::KanjiPrint::print | ( | const osl::state::SimpleState & | state, | |
const osl::Move * | last_move = NULL | |||
) | const |
出力
state | a state to show. | |
last_move | a color last_move is available unless it is null. |
kanjiPrint.cc の 152 行で定義されています。
参照先 osl::BLACK, black_color, osl::state::SimpleState::countPiecesOnStand(), osl::getOwner(), osl::state::SimpleState::getPieceOnBoard(), osl::state::SimpleState::getTurn(), osl::Move::isInvalid(), osl::isPiece(), osl::record::K_BLACK_STAND, osl::record::K_WHITE_STAND, last_move_color, osl::newPtypeO(), osl::PieceStand::order, os, pieces, osl::Piece::ptypeO(), osl::Move::to(), osl::WHITE, と white_color.
参照元 doMain(), show(), と showInfoOfState().
void osl::record::KanjiPrint::setBlackColor | ( | const Color & | c | ) | [inline] |
kanjiPrint.h の 208 行で定義されています。
参照先 black_color.
void osl::record::KanjiPrint::setLastMoveColor | ( | const Color & | c | ) | [inline] |
kanjiPrint.h の 210 行で定義されています。
参照先 last_move_color.
void osl::record::KanjiPrint::setWhiteColor | ( | const Color & | c | ) | [inline] |
kanjiPrint.h の 209 行で定義されています。
参照先 white_color.
Color osl::record::KanjiPrint::black_color [private] |
kanjiPrint.h の 187 行で定義されています。
参照元 print(), と setBlackColor().
kanjiPrint.h の 189 行で定義されています。
参照元 print(), と setLastMoveColor().
std::ostream& osl::record::KanjiPrint::os [private] |
kanjiPrint.h の 185 行で定義されています。
参照元 print().
const boost::shared_ptr<Characters> osl::record::KanjiPrint::pieces [private] |
kanjiPrint.h の 186 行で定義されています。
参照元 print().
Color osl::record::KanjiPrint::white_color [private] |
kanjiPrint.h の 188 行で定義されています。
参照元 print(), と setWhiteColor().