My Project
|
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 void | init () |
Static Private Member Functions | |
static bool | hasEffectFromTo (const NumEffectState &state, PtypeO ptypeo, Square from, Square target, Direction d) |
Static Private Attributes | |
static Table | table |
8近傍への直接の利きを判定する
Definition at line 15 of file neighboring8Direct.h.
|
inlinestatic |
Definition at line 124 of file neighboring8Direct.h.
References osl::effect_util::Neighboring8Direct::Table::findNearest(), and table.
Referenced by osl::rating::AttackKing8Group::findMatch(), and osl::rating::AttackKing8::match().
|
inlinestatic |
ptypeo の駒がfromからtargetの8近傍に直接の利きを持つか
Definition at line 108 of file neighboring8Direct.h.
References osl::effect_util::Neighboring8Direct::Table::hasEffect(), and table.
Referenced by osl::rating::DefenseKing8::blocking(), osl::move_probability::BreakThreatmate::isDefendingKing8(), osl::move_probability::BreakThreatmate::match(), osl::move_probability::CheckmateIfCapture::match(), osl::move_probability::SacrificeAttack::match(), osl::move_probability::KingBlockade::match(), osl::move_probability::EscapeThreatened::match(), osl::rating::DefenseKing8::matchDrop(), osl::rating::Karanari::matchGeneral(), and osl::rating::DefenseKing8::matchMove().
|
staticprivate |
Definition at line 91 of file neighboring8Direct.cc.
References osl::Board_Table, osl::BoardTable::getOffsetForBlack(), osl::NumEffectState::hasEffectIf(), and osl::Square::isOnBoard().
|
static |
Definition at line 100 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().
|
inlinestatic |
ptypeo の駒がfromからtargetの8近傍に直接の利きを持つか そのような駒への追加/影利きになっている
Definition at line 118 of file neighboring8Direct.h.
References osl::effect_util::Neighboring8Direct::Table::hasEffectOrAdditional(), and table.
Referenced by osl::rating::Threatmate::isCandidate().
|
static |
Definition at line 14 of file neighboring8Direct.cc.
References osl::BLACK, osl::effect_util::Neighboring8Direct::Table::init(), table, and osl::WHITE.
|
staticprivate |
Definition at line 103 of file neighboring8Direct.h.
Referenced by findNearest(), hasEffect(), hasEffectOrAdditional(), and init().