駒の文字を管理するAbstract class。 More...
#include <kanjiPrint.h>
Public Member Functions | |
virtual | ~Characters () |
virtual const std::string & | getDan (const size_t index) const =0 |
段数の文字を返す | |
virtual const std::string & | getSuji (const size_t index) const =0 |
筋の文字を返す。駒の文字幅に合わせる必要がある。 | |
virtual const std::string & | getPiece (const size_t index) const =0 |
盤面上の駒を返す | |
const std::string & | getStand (const size_t index) const |
持ち駒の漢字文字を返す。1文字を期待する | |
const std::string & | stand_kanji (const PtypeO &ptypeo) const |
const std::string & | kanji (const PtypeO &ptypeo) const |
const std::string & | kanji (Ptype ptype) const |
Static Public Attributes | |
static const misc::CArray < std::string, 32 > | stand |
Private Member Functions | |
size_t | piece_index (const PtypeO &ptypeo) const |
駒の文字を管理するAbstract class。
Definition at line 98 of file kanjiPrint.h.
osl::record::Characters::~Characters | ( | ) | [virtual] |
Definition at line 105 of file kanjiPrint.cc.
virtual const std::string& osl::record::Characters::getDan | ( | const size_t | index | ) | const [pure virtual] |
段数の文字を返す
Implemented in osl::record::KIFCharacters, osl::record::RussianCharacters, and osl::record::StandardCharacters.
virtual const std::string& osl::record::Characters::getPiece | ( | const size_t | index | ) | const [pure virtual] |
盤面上の駒を返す
Implemented in osl::record::KIFCharacters, osl::record::RussianCharacters, and osl::record::StandardCharacters.
Referenced by kanji().
const std::string& osl::record::Characters::getStand | ( | const size_t | index | ) | const [inline] |
持ち駒の漢字文字を返す。1文字を期待する
Definition at line 113 of file kanjiPrint.h.
References stand.
Referenced by stand_kanji().
virtual const std::string& osl::record::Characters::getSuji | ( | const size_t | index | ) | const [pure virtual] |
筋の文字を返す。駒の文字幅に合わせる必要がある。
Implemented in osl::record::KIFCharacters, osl::record::RussianCharacters, and osl::record::StandardCharacters.
const std::string& osl::record::Characters::kanji | ( | const PtypeO & | ptypeo | ) | const [inline] |
Definition at line 123 of file kanjiPrint.h.
References getPiece(), and piece_index().
Referenced by osl::record::ki2::show().
const std::string& osl::record::Characters::kanji | ( | Ptype | ptype | ) | const [inline] |
Definition at line 127 of file kanjiPrint.h.
References osl::BLACK, getPiece(), and osl::newPtypeO().
size_t osl::record::Characters::piece_index | ( | const PtypeO & | ptypeo | ) | const [inline, private] |
Definition at line 132 of file kanjiPrint.h.
References osl::PTYPEO_MAX, and osl::PTYPEO_MIN.
Referenced by kanji(), and stand_kanji().
const std::string& osl::record::Characters::stand_kanji | ( | const PtypeO & | ptypeo | ) | const [inline] |
Definition at line 118 of file kanjiPrint.h.
References getStand(), and piece_index().
const osl::misc::CArray< std::string, 32 > osl::record::Characters::stand [static] |
{{ K_NAKAGURO, "+E", K_PPAWN, K_PLANCE, K_PKNIGHT, K_PSILVER, K_PBISHOP, K_PROOK, K_KING, K_GOLD, K_PAWN, K_LANCE, K_KNIGHT, K_SILVER, K_BISHOP, K_ROOK, K_NAKAGURO, "+E", K_PPAWN, K_PLANCE, K_PKNIGHT, K_PSILVER, K_PBISHOP, K_PROOK, K_KING, K_GOLD, K_PAWN, K_LANCE, K_KNIGHT, K_SILVER, K_BISHOP, K_ROOK }}
Definition at line 101 of file kanjiPrint.h.
Referenced by getStand().