#include <neighboring25Direct.h>
Static Public Member Functions | |
| static bool | hasEffectNaive (const NumEffectState &state, PtypeO ptypeo, Square from, Square target) |
| static bool | hasEffect (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, Offset offset) |
Definition at line 13 of file neighboring25Direct.h.
| static bool osl::effect_util::Neighboring25Direct::hasEffect | ( | const NumEffectState & | state, |
| PtypeO | ptypeo, | ||
| Square | from, | ||
| Square | target | ||
| ) | [inline, static] |
Definition at line 23 of file neighboring25Direct.h.
References hasEffectNaive().
| bool osl::effect_util::Neighboring25Direct::hasEffectFromTo | ( | const NumEffectState & | state, |
| PtypeO | ptypeo, | ||
| Square | from, | ||
| Square | target, | ||
| Offset | offset | ||
| ) | [static, private] |
Definition at line 6 of file neighboring25Direct.cc.
References osl::Square::isOnBoard().
| bool osl::effect_util::Neighboring25Direct::hasEffectNaive | ( | const NumEffectState & | state, |
| PtypeO | ptypeo, | ||
| Square | from, | ||
| Square | target | ||
| ) | [static] |
Definition at line 15 of file neighboring25Direct.cc.
References osl::getPtype(), osl::PtypeTable::hasLongMove(), osl::LANCE, osl::newOffset(), osl::Ptype_Table, osl::Square::x(), and osl::Square::y().
Referenced by hasEffect().
1.7.6.1