#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.
|
inline |
Definition at line 18 of file countEffect2.h.
|
inlinestatic |
Definition at line 21 of file countEffect2.h.
References osl::alt(), osl::NumEffectState::countEffect(), osl::effect_util::AdditionalEffect::hasEffect(), osl::Square::isOnBoard(), osl::eval::min(), osl::rating::RatingEnv::my_pin, osl::rating::RatingEnv::op_pin, and osl::SimpleState::turn().
Referenced by osl::rating::DefenseKing8::count(), index(), match(), and osl::rating::DefenseKing8::match().
|
inlinestatic |
Definition at line 43 of file countEffect2.h.
References count(), osl::rating::RatingEnv::counteffect2_cache, osl::Square::index(), and osl::Square::isOnBoard().
Referenced by osl::rating::FromEffectGroup::findMatch(), osl::rating::AttackKing8Group::findMatch(), osl::rating::PatternGroup::findMatch(), osl::rating::PatternLongGroup::findMatch(), and osl::rating::PatternBlockGroup::findMatch().
|
inline |
Definition at line 37 of file countEffect2.h.
References count(), and name().
Referenced by osl::rating::FromEffect::match(), osl::rating::AttackKing8::match(), osl::rating::Pattern::match(), osl::rating::LongTarget::match(), and osl::rating::LongTarget::matchOtherThanPromotable().
|
static |
Definition at line 9 of file countEffect2.cc.
References defense.
Referenced by match(), and osl::rating::LongTarget::name().
int osl::rating::CountEffect2::attack |
Definition at line 17 of file countEffect2.h.
Referenced by osl::rating::DefenseKing8::blocking(), osl::rating::DefenseKing8::count(), osl::rating::PtypeAttacked::match(), osl::rating::ImmediateEscape::match(), and osl::rating::LongTarget::name().
int osl::rating::CountEffect2::defense |
Definition at line 17 of file countEffect2.h.
Referenced by name(), and osl::rating::LongTarget::name().
|
static |
Definition at line 16 of file countEffect2.h.