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