#include <ptypeTraits.h>
Static Public メソッド | |
static bool | canDropTo (Position, Int2Type< false >) |
static bool | canDropTo (Position pos, Int2Type< true >) |
static bool | canDropTo (Position pos) |
static bool | mayPromote (Position pos, Int2Type< true >) |
posにある駒がpromoteする可能性があるか? 先手BISHOPが49,58,59,69などにいる場合は可能性がないが,この時点では排除しない | |
static bool | mayPromote (Position pos) |
static bool | mustPromote (Position pos) |
posにあるTの駒がpromoteする手しかない | |
static bool | canPromote (Position pos) |
posにあるTの駒がどの方向に動いてもpromote可能 | |
static bool | checkPromote (Position pos) |
posにあるTの駒がpromote可能なdirectionに動く時だけpromote可能 shortの時はその時のみYES | |
static bool | noPromote (Position pos) |
posにあるTの駒は次に絶対にpromoteできない |
ptypeTraits.h の 369 行で定義されています。
static bool osl::PtypePlayerTraits< T, P >::canDropTo | ( | Position | pos | ) | [inline, static] |
ptypeTraits.h の 386 行で定義されています。
参照先 osl::PtypePlayerTraits< T, P >::canDropTo(), と osl::isBasic().
static bool osl::PtypePlayerTraits< T, P >::canDropTo | ( | Position | pos, | |
Int2Type< true > | ||||
) | [inline, static] |
ptypeTraits.h の 376 行で定義されています。
参照先 osl::BLACK, osl::Position::reverseY(), と osl::Position::y().
static bool osl::PtypePlayerTraits< T, P >::canDropTo | ( | Position | , | |
Int2Type< false > | ||||
) | [inline, static] |
ptypeTraits.h の 371 行で定義されています。
static bool osl::PtypePlayerTraits< T, P >::canPromote | ( | Position | pos | ) | [inline, static] |
posにあるTの駒がどの方向に動いてもpromote可能
ptypeTraits.h の 428 行で定義されています。
参照先 osl::BLACK, osl::KNIGHT, osl::LANCE, osl::PAWN, osl::Position::yGe(), と osl::Position::yLe().
static bool osl::PtypePlayerTraits< T, P >::checkPromote | ( | Position | pos | ) | [inline, static] |
posにあるTの駒がpromote可能なdirectionに動く時だけpromote可能 shortの時はその時のみYES
ptypeTraits.h の 445 行で定義されています。
参照先 osl::BISHOP, osl::BLACK, osl::LANCE, osl::ROOK, osl::SILVER, と osl::Position::yEq().
static bool osl::PtypePlayerTraits< T, P >::mayPromote | ( | Position | pos | ) | [inline, static] |
ptypeTraits.h の 404 行で定義されています。
参照先 osl::canPromote(), osl::isBasic(), と osl::PtypePlayerTraits< T, P >::mayPromote().
static bool osl::PtypePlayerTraits< T, P >::mayPromote | ( | Position | pos, | |
Int2Type< true > | ||||
) | [inline, static] |
posにある駒がpromoteする可能性があるか? 先手BISHOPが49,58,59,69などにいる場合は可能性がないが,この時点では排除しない
ptypeTraits.h の 394 行で定義されています。
参照先 osl::BLACK, osl::Position::reverseY(), と osl::Position::y().
static bool osl::PtypePlayerTraits< T, P >::mustPromote | ( | Position | pos | ) | [inline, static] |
posにあるTの駒がpromoteする手しかない
ptypeTraits.h の 412 行で定義されています。
参照先 osl::BLACK, osl::KNIGHT, osl::LANCE, osl::PAWN, osl::Position::yEq(), osl::Position::yGe(), と osl::Position::yLe().
static bool osl::PtypePlayerTraits< T, P >::noPromote | ( | Position | pos | ) | [inline, static] |
posにあるTの駒は次に絶対にpromoteできない
ptypeTraits.h の 463 行で定義されています。
参照先 osl::BISHOP, osl::BLACK, osl::KNIGHT, osl::LANCE, osl::PAWN, osl::ROOK, osl::SILVER, osl::Position::yGe(), と osl::Position::yLe().