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近傍に利きを持つか More... | |
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 |
|
inlinestatic |
ptypeo の駒がfromからtargetの8近傍に利きを持つか
Definition at line 78 of file neighboring8Effect.h.
References osl::effect_util::Neighboring8Effect::Table::hasEffect(), and table.
|
staticprivate |
Definition at line 83 of file neighboring8Effect.cc.
References osl::Board_Table, osl::BoardTable::getOffsetForBlack(), and osl::Square::isOnBoard().
|
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().
|
staticprivate |
Definition at line 73 of file neighboring8Effect.h.
Referenced by hasEffect().