駒の文字を管理するAbstract class。 [詳細]
#include <kanjiPrint.h>
Public メソッド | |
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 変数 | |
static const CArray < std::string, 32 > | stand |
Private メソッド | |
size_t | piece_index (const PtypeO &ptypeo) const |
駒の文字を管理するAbstract class。
kanjiPrint.h の 97 行で定義されています。
osl::record::Characters::~Characters | ( | ) | [virtual] |
kanjiPrint.cc の 96 行で定義されています。
virtual const std::string& osl::record::Characters::getDan | ( | const size_t | index | ) | const [pure virtual] |
段数の文字を返す
osl::record::StandardCharacters, osl::record::RussianCharacters, と osl::record::KIFCharactersで実装されています。
virtual const std::string& osl::record::Characters::getPiece | ( | const size_t | index | ) | const [pure virtual] |
盤面上の駒を返す
osl::record::StandardCharacters, osl::record::RussianCharacters, と osl::record::KIFCharactersで実装されています。
参照元 kanji().
const std::string& osl::record::Characters::getStand | ( | const size_t | index | ) | const [inline] |
virtual const std::string& osl::record::Characters::getSuji | ( | const size_t | index | ) | const [pure virtual] |
筋の文字を返す。駒の文字幅に合わせる必要がある。
osl::record::StandardCharacters, osl::record::RussianCharacters, と osl::record::KIFCharactersで実装されています。
const std::string& osl::record::Characters::kanji | ( | Ptype | ptype | ) | const [inline] |
kanjiPrint.h の 126 行で定義されています。
参照先 osl::BLACK, getPiece(), と osl::newPtypeO().
const std::string& osl::record::Characters::kanji | ( | const PtypeO & | ptypeo | ) | const [inline] |
kanjiPrint.h の 122 行で定義されています。
参照先 getPiece(), と piece_index().
size_t osl::record::Characters::piece_index | ( | const PtypeO & | ptypeo | ) | const [inline, private] |
kanjiPrint.h の 131 行で定義されています。
参照先 osl::PTYPEO_MAX, と osl::PTYPEO_MIN.
参照元 kanji(), と stand_kanji().
const std::string& osl::record::Characters::stand_kanji | ( | const PtypeO & | ptypeo | ) | const [inline] |
kanjiPrint.h の 117 行で定義されています。
参照先 getStand(), と piece_index().
const osl::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 }}
kanjiPrint.h の 100 行で定義されています。
参照元 getStand().