Classes | |
struct | Entry |
Public Member Functions | |
Table () | |
bool | hasEffect (const NumEffectState &state, PtypeO ptypeo, Square from, Square target) const |
Private Member Functions | |
void | init (Player) |
template<int maxCount> | |
bool | hasAtMaxPieceBetween (const NumEffectState &state, Square from, Square target) const |
Private Attributes | |
CArray2d< Entry, PTYPEO_SIZE, Offset32::SIZE > | table |
Definition at line 19 of file neighboring8Effect.h.
osl::effect_util::Neighboring8Effect::Table::Table | ( | ) |
Definition at line 6 of file neighboring8Effect.cc.
References osl::BLACK, and osl::WHITE.
|
inlineprivate |
Definition at line 33 of file neighboring8Effect.h.
References osl::Board_Table, count, osl::BoardTable::getShortOffset(), osl::Square::isOnBoard(), and target.
|
inline |
Definition at line 54 of file neighboring8Effect.h.
References osl::getPtype(), osl::effect_util::Neighboring8Effect::Table::Entry::has_unblockable_effect, osl::PtypeTable::hasLongMove(), osl::Offset32Base< Width, Width2 >::index(), osl::effect_util::Neighboring8Effect::Table::Entry::nearest, osl::Ptype_Table, osl::ptypeOIndex(), table, and osl::Offset::zero().
Referenced by osl::effect_util::Neighboring8Effect::hasEffect().
|
private |
Definition at line 13 of file neighboring8Effect.cc.
References osl::Board_Table, osl::DIRECTION_MAX, osl::DIRECTION_MIN, osl::Offset::dx(), osl::Offset::dy(), osl::PtypeTable::getMoveMask(), osl::BoardTable::getOffset(), osl::Offset32Base< Width, Width2 >::index(), osl::isLong(), osl::isPiece(), osl::effect_util::Neighboring8Effect::Table::Entry::nearest, osl::newPtypeO(), osl::PTYPE_MAX, osl::PTYPE_PIECE_MIN, osl::Ptype_Table, osl::ptypeOIndex(), and osl::Offset::zero().
|
private |
Definition at line 29 of file neighboring8Effect.h.
Referenced by hasEffect().