My Project
|
Classes | |
struct | Entry |
Public Member Functions | |
bool | hasEffect (const NumEffectState &state, PtypeO ptypeo, Square from, Square target) const |
bool | hasEffectOrAdditional (const NumEffectState &state, PtypeO ptypeo, Square from, Square target) const |
Square | findNearest (const NumEffectState &state, PtypeO ptypeo, Square from, Square target) const |
Private Member Functions | |
void | init (Player) |
Private Attributes | |
CArray2d< Entry, PTYPEO_SIZE, Offset32::SIZE > | table |
Friends | |
class | Neighboring8Direct |
Definition at line 17 of file neighboring8Direct.h.
|
inline |
Definition at line 85 of file neighboring8Direct.h.
References osl::getPtype(), osl::effect_util::Neighboring8Direct::Table::Entry::has_unblockable_effect, osl::PtypeTable::hasLongMove(), osl::Offset32Base< Width, Width2 >::index(), osl::Square::isEdge(), osl::SimpleState::isEmptyBetween(), osl::effect_util::Neighboring8Direct::Table::Entry::nearest, osl::Ptype_Table, osl::ptypeOIndex(), osl::Square::STAND(), table, and osl::Offset::zero().
Referenced by osl::effect_util::Neighboring8Direct::findNearest().
|
inline |
Definition at line 31 of file neighboring8Direct.h.
References osl::getPtype(), osl::effect_util::Neighboring8Direct::Table::Entry::has_unblockable_effect, osl::PtypeTable::hasLongMove(), osl::Offset32Base< Width, Width2 >::index(), osl::Square::isEdge(), osl::SimpleState::isEmptyBetween(), osl::Square::isOnBoard(), osl::effect_util::Neighboring8Direct::Table::Entry::nearest, osl::Ptype_Table, osl::ptypeOIndex(), table, and osl::Offset::zero().
Referenced by osl::effect_util::Neighboring8Direct::hasEffect().
|
inline |
Definition at line 51 of file neighboring8Direct.h.
References osl::alt(), osl::Board_Table, osl::BoardTable::getLongDirection(), osl::getOwner(), osl::getPtype(), osl::BoardTable::getShortOffset(), osl::effect_util::Neighboring8Direct::Table::Entry::has_unblockable_effect, osl::NumEffectState::hasEffectByPiece(), osl::PtypeTable::hasLongMove(), osl::Offset32Base< Width, Width2 >::index(), osl::Square::isEdge(), osl::Piece::isEmpty(), osl::Piece::isPiece(), osl::NumEffectState::kingMobilityOfPlayer(), osl::SimpleState::kingSquare(), osl::longToShort(), osl::effect_util::Neighboring8Direct::Table::Entry::nearest, osl::SimpleState::pieceAt(), osl::Ptype_Table, osl::ptypeOIndex(), table, and osl::Offset::zero().
Referenced by osl::effect_util::Neighboring8Direct::hasEffectOrAdditional().
|
private |
Definition at line 21 of file neighboring8Direct.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::Neighboring8Direct::Table::Entry::nearest, osl::newPtypeO(), osl::PTYPE_MAX, osl::PTYPE_PIECE_MIN, osl::Ptype_Table, osl::ptypeOIndex(), and osl::Offset::zero().
Referenced by osl::effect_util::Neighboring8Direct::init().
|
friend |
Definition at line 28 of file neighboring8Direct.h.
|
private |
Definition at line 27 of file neighboring8Direct.h.
Referenced by findNearest(), hasEffect(), and hasEffectOrAdditional().