8近傍への直接の利きを判定する [詳細]
#include <neighboring8Direct.h>
構成 | |
class | Table |
Static Public メソッド | |
static bool | hasEffect (const NumEffectState &state, PtypeO ptypeo, Position from, Position target) |
ptypeo の駒がfromからtargetの8近傍に直接の利きを持つか | |
static bool | hasEffectOrAdditional (const NumEffectState &state, PtypeO ptypeo, Position from, Position target) |
ptypeo の駒がfromからtargetの8近傍に直接の利きを持つか そのような駒への追加/影利きになっている | |
static Position | findNearest (const NumEffectState &state, PtypeO ptypeo, Position from, Position target) |
static bool | hasEffectNaive (const NumEffectState &state, PtypeO ptypeo, Position from, Position target) |
Static Private メソッド | |
static bool | hasEffectFromTo (const NumEffectState &state, PtypeO ptypeo, Position from, Position target, Direction d) |
Static Private 変数 | |
static const Table | table |
8近傍への直接の利きを判定する
neighboring8Direct.h の 16 行で定義されています。
static Position osl::effect_util::Neighboring8Direct::findNearest | ( | const NumEffectState & | state, | |
PtypeO | ptypeo, | |||
Position | from, | |||
Position | target | |||
) | [inline, static] |
neighboring8Direct.h の 122 行で定義されています。
参照先 osl::effect_util::Neighboring8Direct::Table::findNearest(), と table.
static bool osl::effect_util::Neighboring8Direct::hasEffect | ( | const NumEffectState & | state, | |
PtypeO | ptypeo, | |||
Position | from, | |||
Position | target | |||
) | [inline, static] |
ptypeo の駒がfromからtargetの8近傍に直接の利きを持つか
neighboring8Direct.h の 106 行で定義されています。
参照先 osl::effect_util::Neighboring8Direct::Table::hasEffect(), と table.
bool osl::effect_util::Neighboring8Direct::hasEffectFromTo | ( | const NumEffectState & | state, | |
PtypeO | ptypeo, | |||
Position | from, | |||
Position | target, | |||
Direction | d | |||
) | [static, private] |
neighboring8Direct.cc の 83 行で定義されています。
参照先 osl::Board_Table, osl::BoardTable::getOffsetForBlack(), と osl::Position::isOnBoard().
参照元 hasEffectNaive().
bool osl::effect_util::Neighboring8Direct::hasEffectNaive | ( | const NumEffectState & | state, | |
PtypeO | ptypeo, | |||
Position | from, | |||
Position | target | |||
) | [static] |
neighboring8Direct.cc の 92 行で定義されています。
参照先 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::Position::x(), と osl::Position::y().
static bool osl::effect_util::Neighboring8Direct::hasEffectOrAdditional | ( | const NumEffectState & | state, | |
PtypeO | ptypeo, | |||
Position | from, | |||
Position | target | |||
) | [inline, static] |
ptypeo の駒がfromからtargetの8近傍に直接の利きを持つか そのような駒への追加/影利きになっている
neighboring8Direct.h の 116 行で定義されています。
参照先 osl::effect_util::Neighboring8Direct::Table::hasEffectOrAdditional(), と table.
const Table osl::effect_util::Neighboring8Direct::table [static, private] |
neighboring8Direct.h の 101 行で定義されています。