8近傍への利きを判定する. More...
#include <neighboring8Effect.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 | 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 |
static bool osl::effect_util::Neighboring8Effect::hasEffect | ( | const NumEffectState & | state, |
PtypeO | ptypeo, | ||
Square | from, | ||
Square | target | ||
) | [inline, static] |
ptypeo の駒がfromからtargetの8近傍に利きを持つか
Definition at line 78 of file neighboring8Effect.h.
References osl::effect_util::Neighboring8Effect::Table::hasEffect(), and table.
bool osl::effect_util::Neighboring8Effect::hasEffectFromTo | ( | const NumEffectState & | state, |
PtypeO | ptypeo, | ||
Square | from, | ||
Square | target, | ||
Direction | d | ||
) | [static, private] |
Definition at line 83 of file neighboring8Effect.cc.
References osl::Board_Table, osl::BoardTable::getOffsetForBlack(), and osl::Square::isOnBoard().
bool osl::effect_util::Neighboring8Effect::hasEffectNaive | ( | const NumEffectState & | state, |
PtypeO | ptypeo, | ||
Square | from, | ||
Square | target | ||
) | [static] |
Definition at line 91 of file neighboring8Effect.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().
const effect_util::Neighboring8Effect::Table osl::Neighboring8Effect::table [static, private] |
Definition at line 73 of file neighboring8Effect.h.
Referenced by hasEffect().