#include <countEffect2.h>
Public Member Functions | |
CountEffect2 (int a, int d) | |
bool | match (const NumEffectState &state, Square position, const RatingEnv &env) const |
Static Public Member Functions | |
static std::pair< int, int > | count (const NumEffectState &state, Square position, const RatingEnv &env) |
static std::string | name (int attack, int defense) |
static int | index (const NumEffectState &state, Square position, const RatingEnv &env) |
Public Attributes | |
int | attack |
int | defense |
Static Public Attributes | |
static const int | Max = 2 |
Definition at line 14 of file countEffect2.h.
osl::rating::CountEffect2::CountEffect2 | ( | int | a, |
int | d | ||
) | [inline] |
Definition at line 18 of file countEffect2.h.
static std::pair<int,int> osl::rating::CountEffect2::count | ( | const NumEffectState & | state, |
Square | position, | ||
const RatingEnv & | env | ||
) | [inline, static] |
Definition at line 21 of file countEffect2.h.
References osl::alt(), attack, defense, osl::move_generator::addeffect8::hasEffect(), osl::Square::isOnBoard(), Max, osl::eval::min(), osl::rating::RatingEnv::my_pin, and osl::rating::RatingEnv::op_pin.
static int osl::rating::CountEffect2::index | ( | const NumEffectState & | state, |
Square | position, | ||
const RatingEnv & | env | ||
) | [inline, static] |
Definition at line 43 of file countEffect2.h.
References count(), osl::rating::RatingEnv::counteffect2_cache, osl::Square::index(), osl::Square::isOnBoard(), and Max.
Referenced by osl::rating::AttackKing8Group::findMatch(), osl::rating::FromEffectGroup::findMatch(), osl::rating::PatternGroup::findMatch(), osl::rating::PatternLongGroup::findMatch(), and osl::rating::PatternBlockGroup::findMatch().
bool osl::rating::CountEffect2::match | ( | const NumEffectState & | state, |
Square | position, | ||
const RatingEnv & | env | ||
) | const [inline] |
Definition at line 37 of file countEffect2.h.
References attack, count(), and defense.
Referenced by osl::rating::AttackKing8::match(), osl::rating::Pattern::match(), osl::rating::LongTarget::match(), and osl::rating::LongTarget::matchOtherThanPromotable().
std::string osl::rating::CountEffect2::name | ( | int | attack, |
int | defense | ||
) | [static] |
Definition at line 9 of file countEffect2.cc.
References defense.
Referenced by osl::rating::LongTarget::name().
Definition at line 17 of file countEffect2.h.
Definition at line 17 of file countEffect2.h.
const int osl::rating::CountEffect2::Max = 2 [static] |
Definition at line 16 of file countEffect2.h.