My Project
|
#include <pattern.h>
Public Member Functions | |
Pattern (Direction d, Ptype s, Ptype t, bool ss, int attack, int defense) | |
Pattern (Direction d, Direction d2, Ptype s, Ptype t, bool ss, int attack, int defense) | |
bool | match (const NumEffectState &state, Move move, const RatingEnv &env) const |
![]() | |
Feature (const std::string &name) | |
virtual | ~Feature () |
virtual bool | effectiveInCheck () const |
const std::string & | name () const |
Static Public Member Functions | |
static Square | nextSquare (Player player, Square start, Direction direction, Direction direction2) |
static Square | nextSquare (Move move, Direction direction, Direction direction2) |
Static Public Attributes | |
static const Direction | INVALID = LONG_UL |
Static Private Member Functions | |
static const std::string | name (Direction d, Direction d2, Ptype self, Ptype target, bool same) |
![]() | |
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) |
Private Attributes | |
Direction | direction |
Direction | direction2 |
Ptype | self |
Ptype | target |
bool | same |
![]() | |
int | attack |
int | defense |
Additional Inherited Members | |
![]() | |
CountEffect2 (int a, int d) | |
bool | match (const NumEffectState &state, Square position, const RatingEnv &env) const |
![]() | |
static const int | Max = 2 |
|
inlinevirtual |
Implements osl::rating::Feature.
Definition at line 44 of file pattern.h.
References osl::rating::CountEffect2::count(), direction, direction2, osl::Piece::EMPTY(), osl::Move::from(), osl::isPiece(), osl::rating::CountEffect2::match(), nextSquare(), osl::SimpleState::pieceAt(), osl::Move::player(), osl::Move::ptype(), same, self, and target.
|
staticprivate |
Definition at line 6 of file pattern.cc.
References osl::rating::CountEffect2::count(), osl::PtypeTable::getCsaName(), INVALID, osl::Ptype_Table, same, self, and target.
|
inlinestatic |
Definition at line 40 of file pattern.h.
References direction, direction2, nextSquare(), osl::Move::player(), and osl::Move::to().
|
inlinestatic |
Definition at line 33 of file pattern.h.
References osl::Board_Table, osl::rating::CountEffect2::count(), direction, direction2, INVALID, and osl::BoardTable::nextSquare().
Referenced by osl::rating::PatternGroup::findMatch(), match(), nextSquare(), and osl::rating::PatternGroup::PatternGroup().
|
private |
Definition at line 18 of file pattern.h.
Referenced by match(), nextSquare(), and nextSquare().
|
private |
Definition at line 18 of file pattern.h.
Referenced by match(), nextSquare(), and nextSquare().
Definition at line 16 of file pattern.h.
Referenced by name(), osl::rating::PatternGroup::name(), and nextSquare().
|
private |
|
private |
|
private |