駒の文字を管理するAbstract class。 More...
#include <kanjiPrint.h>
Public Member Functions | |
virtual | ~Characters () |
virtual const std::string & | getDan (const size_t index) const =0 |
段数の文字を返す More... | |
virtual const std::string & | getSuji (const size_t index) const =0 |
筋の文字を返す。駒の文字幅に合わせる必要がある。 More... | |
virtual const std::string & | getPiece (const size_t index) const =0 |
盤面上の駒を返す More... | |
const std::string & | getStand (const size_t index) const |
持ち駒の漢字文字を返す。1文字を期待する More... | |
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 CArray< std::string, 32 > | stand |
Private Member Functions | |
size_t | piece_index (const PtypeO &ptypeo) const |
駒の文字を管理するAbstract class。
Definition at line 97 of file kanjiPrint.h.
|
virtual |
Definition at line 96 of file kanjiPrint.cc.
References osl::record::StandardCharacters::dan, osl::record::RussianCharacters::dan, osl::record::KIFCharacters::dan, K_BISHOP, K_BISHOP_R, K_GOLD, K_GOLD_R, K_K1, K_K2, K_K3, K_K4, K_K5, K_K6, K_K7, K_K8, K_K9, K_KING, K_KING_R, K_KNIGHT, K_KNIGHT_R, K_LANCE, K_LANCE_R, K_NAKAGURO, K_PAWN, K_PAWN_R, K_PBISHOP, K_PBISHOP_R, K_PKNIGHT, K_PKNIGHT_R, K_PLANCE, K_PLANCE_R, K_PPAWN, K_PPAWN_R, K_PROOK, K_PROOK_R, K_PSILVER, K_PSILVER_R, K_R1, K_R2, K_R3, K_R4, K_R5, K_R6, K_R7, K_R8, K_R9, K_ROOK, K_ROOK_R, K_SILVER, K_SILVER_R, osl::record::operator<<(), osl::record::StandardCharacters::pieces, osl::record::RussianCharacters::pieces, osl::record::KIFCharacters::pieces, stand, osl::record::StandardCharacters::suji, osl::record::RussianCharacters::suji, and osl::record::KIFCharacters::suji.
|
pure virtual |
段数の文字を返す
Implemented in osl::record::KIFCharacters, osl::record::RussianCharacters, and osl::record::StandardCharacters.
|
pure virtual |
盤面上の駒を返す
Implemented in osl::record::KIFCharacters, osl::record::RussianCharacters, and osl::record::StandardCharacters.
|
inline |
持ち駒の漢字文字を返す。1文字を期待する
Definition at line 112 of file kanjiPrint.h.
|
pure virtual |
筋の文字を返す。駒の文字幅に合わせる必要がある。
Implemented in osl::record::KIFCharacters, osl::record::RussianCharacters, and osl::record::StandardCharacters.
|
inline |
Definition at line 122 of file kanjiPrint.h.
|
inline |
Definition at line 126 of file kanjiPrint.h.
References osl::BLACK, and osl::newPtypeO().
|
inlineprivate |
Definition at line 131 of file kanjiPrint.h.
References osl::PTYPEO_MAX, and osl::PTYPEO_MIN.
|
inline |
Definition at line 117 of file kanjiPrint.h.
|
static |
Definition at line 100 of file kanjiPrint.h.
Referenced by ~Characters().