My Project
|
#include <pattern.h>
Public Member Functions | |
LongTarget (Ptype t, bool p, bool s, int attack, int defense) | |
bool | match (const NumEffectState &state, Move move, PieceSquare p, const RatingEnv &env) const |
bool | matchOtherThanPromotable (const NumEffectState &state, Move move, PieceSquare p, const RatingEnv &env) const |
const std::string | name () const |
![]() | |
CountEffect2 (int a, int d) | |
bool | match (const NumEffectState &state, Square position, const RatingEnv &env) const |
Static Public Member Functions | |
static bool | isPromotable (Move move, Square position) |
![]() | |
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 | |
Ptype | target |
bool | promotable |
bool | same |
![]() | |
int | attack |
int | defense |
Additional Inherited Members | |
![]() | |
static const int | Max = 2 |
Definition at line 69 of file pattern.h.
References osl::Square::canPromote(), osl::rating::CountEffect2::count(), osl::Move::isDrop(), osl::Move::player(), and osl::Move::to().
Referenced by osl::rating::PatternLongGroup::findMatch(), and match().
|
inline |
Definition at line 74 of file pattern.h.
References osl::rating::CountEffect2::count(), isPromotable(), osl::rating::CountEffect2::match(), osl::Move::player(), promotable, osl::PTYPE_EDGE, same, and target.
Referenced by osl::rating::PatternLong::match().
|
inline |
Definition at line 88 of file pattern.h.
References osl::rating::CountEffect2::count(), osl::rating::CountEffect2::match(), osl::Move::player(), osl::PTYPE_EDGE, same, and target.
Referenced by osl::rating::PatternBlock::match().
const std::string osl::rating::LongTarget::name | ( | ) | const |
Definition at line 17 of file pattern.cc.
References osl::PtypeTable::getCsaName(), osl::rating::CountEffect2::name(), and osl::Ptype_Table.
bool osl::rating::LongTarget::promotable |
Definition at line 64 of file pattern.h.
Referenced by osl::rating::PatternBlock::match(), and match().
bool osl::rating::LongTarget::same |
Definition at line 64 of file pattern.h.
Referenced by match(), and matchOtherThanPromotable().
Ptype osl::rating::LongTarget::target |
Definition at line 63 of file pattern.h.
Referenced by match(), and matchOtherThanPromotable().