8近傍への直接の利きを判定する [詳細]
#include <neighboring8Direct.h>
構成 | |
class | Table |
Static Public メソッド | |
static bool | hasEffect (const NumEffectState &state, PtypeO ptypeo, Square from, Square target) |
ptypeo の駒がfromからtargetの8近傍に直接の利きを持つか | |
static bool | hasEffectOrAdditional (const NumEffectState &state, PtypeO ptypeo, Square from, Square target) |
ptypeo の駒がfromからtargetの8近傍に直接の利きを持つか そのような駒への追加/影利きになっている | |
static Square | findNearest (const NumEffectState &state, PtypeO ptypeo, Square from, Square target) |
static bool | hasEffectNaive (const NumEffectState &state, PtypeO ptypeo, Square from, Square target) |
static void | init () |
Static Private メソッド | |
static bool | hasEffectFromTo (const NumEffectState &state, PtypeO ptypeo, Square from, Square target, Direction d) |
Static Private 変数 | |
static Table | table |
8近傍への直接の利きを判定する
neighboring8Direct.h の 15 行で定義されています。
static Square osl::effect_util::Neighboring8Direct::findNearest | ( | const NumEffectState & | state, | |
PtypeO | ptypeo, | |||
Square | from, | |||
Square | target | |||
) | [inline, static] |
neighboring8Direct.h の 124 行で定義されています。
参照先 osl::effect_util::Neighboring8Direct::Table::findNearest(), と table.
static bool osl::effect_util::Neighboring8Direct::hasEffect | ( | const NumEffectState & | state, | |
PtypeO | ptypeo, | |||
Square | from, | |||
Square | target | |||
) | [inline, static] |
ptypeo の駒がfromからtargetの8近傍に直接の利きを持つか
neighboring8Direct.h の 108 行で定義されています。
参照先 osl::effect_util::Neighboring8Direct::Table::hasEffect(), と table.
bool osl::effect_util::Neighboring8Direct::hasEffectFromTo | ( | const NumEffectState & | state, | |
PtypeO | ptypeo, | |||
Square | from, | |||
Square | target, | |||
Direction | d | |||
) | [static, private] |
bool osl::effect_util::Neighboring8Direct::hasEffectNaive | ( | const NumEffectState & | state, | |
PtypeO | ptypeo, | |||
Square | from, | |||
Square | target | |||
) | [static] |
neighboring8Direct.cc の 96 行で定義されています。
参照先 osl::D, osl::DL, osl::DR, osl::getPtype(), hasEffectFromTo(), osl::PtypeTable::hasLongMove(), osl::L, osl::LANCE, osl::Ptype_Table, osl::R, osl::U, osl::UL, osl::UR, osl::Square::x(), と osl::Square::y().
static bool osl::effect_util::Neighboring8Direct::hasEffectOrAdditional | ( | const NumEffectState & | state, | |
PtypeO | ptypeo, | |||
Square | from, | |||
Square | target | |||
) | [inline, static] |
ptypeo の駒がfromからtargetの8近傍に直接の利きを持つか そのような駒への追加/影利きになっている
neighboring8Direct.h の 118 行で定義されています。
参照先 osl::effect_util::Neighboring8Direct::Table::hasEffectOrAdditional(), と table.
void osl::effect_util::Neighboring8Direct::init | ( | ) | [static] |
neighboring8Direct.cc の 10 行で定義されています。
参照先 osl::BLACK, osl::effect_util::Neighboring8Direct::Table::init(), table, と osl::WHITE.
osl::effect_util::Neighboring8Direct::Table osl::effect_util::Neighboring8Direct::table [static, private] |
neighboring8Direct.h の 103 行で定義されています。
参照元 findNearest(), hasEffect(), hasEffectOrAdditional(), と init().