Static Public メソッド

構造体 テンプレート osl::PtypePlayerTraits< T, P >

#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できない

説明

template<Ptype T, Player P>
struct osl::PtypePlayerTraits< T, P >

ptypeTraits.h362 行で定義されています。


関数

template<Ptype T, Player P>
static bool osl::PtypePlayerTraits< T, P >::canDropTo ( Square  pos  )  [inline, static]
template<Ptype T, Player P>
static bool osl::PtypePlayerTraits< T, P >::canPromote ( Square  pos  )  [inline, static]

posにあるTの駒がどの方向に動いてもpromote可能

ptypeTraits.h409 行で定義されています。

参照先 osl::BLACK, osl::KNIGHT, osl::LANCE, osl::PAWN, osl::Square::yGe(), と osl::Square::yLe().

template<Ptype T, Player P>
static bool osl::PtypePlayerTraits< T, P >::checkPromote ( Square  pos  )  [inline, static]

posにあるTの駒がpromote可能なdirectionに動く時だけpromote可能 shortの時はその時のみYES

ptypeTraits.h426 行で定義されています。

参照先 osl::BISHOP, osl::BLACK, osl::LANCE, osl::ROOK, osl::SILVER, と osl::Square::yEq().

template<Ptype T, Player P>
static bool osl::PtypePlayerTraits< T, P >::mayPromote ( Square  pos  )  [inline, static]

posにある駒がpromoteする可能性があるか? 先手BISHOPが49,58,59,69などにいる場合は可能性がないが,この時点では排除しない

ptypeTraits.h379 行で定義されています。

参照先 osl::BLACK, osl::canPromote(), osl::isBasic(), osl::Square::reverseY(), osl::static_assert(), と osl::Square::y().

template<Ptype T, Player P>
static bool osl::PtypePlayerTraits< T, P >::mustPromote ( Square  pos  )  [inline, static]

posにあるTの駒がpromoteする手しかない

ptypeTraits.h393 行で定義されています。

参照先 osl::BLACK, osl::KNIGHT, osl::LANCE, osl::PAWN, osl::Square::yEq(), osl::Square::yGe(), と osl::Square::yLe().

template<Ptype T, Player P>
static bool osl::PtypePlayerTraits< T, P >::noPromote ( Square  pos  )  [inline, static]

posにあるTの駒は次に絶対にpromoteできない

ptypeTraits.h444 行で定義されています。

参照先 osl::BISHOP, osl::BLACK, osl::KNIGHT, osl::LANCE, osl::PAWN, osl::ROOK, osl::SILVER, osl::Square::yGe(), と osl::Square::yLe().


この構造体の説明は次のファイルから生成されました:
 全て クラス ネームスペース ファイル 関数 変数 型定義 列挙型 列挙型の値 フレンド マクロ定義