8近傍への直接の利きを判定する More...
#include <neighboring8Direct.h>
Classes | |
class | Table |
Static Public Member Functions | |
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 Private Member Functions | |
static bool | hasEffectFromTo (const NumEffectState &state, PtypeO ptypeo, Square from, Square target, Direction d) |
Static Private Attributes | |
static const Table | table |
8近傍への直接の利きを判定する
Definition at line 16 of file neighboring8Direct.h.
static Square osl::effect_util::Neighboring8Direct::findNearest | ( | const NumEffectState & | state, |
PtypeO | ptypeo, | ||
Square | from, | ||
Square | target | ||
) | [inline, static] |
Definition at line 122 of file neighboring8Direct.h.
References osl::effect_util::Neighboring8Direct::Table::findNearest(), and table.
static bool osl::effect_util::Neighboring8Direct::hasEffect | ( | const NumEffectState & | state, |
PtypeO | ptypeo, | ||
Square | from, | ||
Square | target | ||
) | [inline, static] |
ptypeo の駒がfromからtargetの8近傍に直接の利きを持つか
Definition at line 106 of file neighboring8Direct.h.
References osl::effect_util::Neighboring8Direct::Table::hasEffect(), and table.
bool osl::effect_util::Neighboring8Direct::hasEffectFromTo | ( | const NumEffectState & | state, |
PtypeO | ptypeo, | ||
Square | from, | ||
Square | target, | ||
Direction | d | ||
) | [static, private] |
Definition at line 83 of file neighboring8Direct.cc.
References osl::Board_Table, osl::BoardTable::getOffsetForBlack(), and osl::Square::isOnBoard().
bool osl::effect_util::Neighboring8Direct::hasEffectNaive | ( | const NumEffectState & | state, |
PtypeO | ptypeo, | ||
Square | from, | ||
Square | target | ||
) | [static] |
Definition at line 92 of file neighboring8Direct.cc.
References osl::D, osl::DL, osl::DR, osl::getPtype(), osl::PtypeTable::hasLongMove(), osl::L, osl::LANCE, osl::Ptype_Table, osl::R, osl::U, osl::UL, osl::UR, osl::Square::x(), and 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近傍に直接の利きを持つか そのような駒への追加/影利きになっている
Definition at line 116 of file neighboring8Direct.h.
References osl::effect_util::Neighboring8Direct::Table::hasEffectOrAdditional(), and table.
const effect_util::Neighboring8Direct::Table osl::Neighboring8Direct::table [static, private] |
Definition at line 101 of file neighboring8Direct.h.
Referenced by findNearest(), hasEffect(), and hasEffectOrAdditional().