#include <king8.h>
Public Member Functions | |
AttackKing8 (Ptype s, Ptype t, bool ss, int attack, int defense) | |
bool | match (const NumEffectState &state, Move move, const RatingEnv &env) const |
Static Private Member Functions | |
static const std::string | name (Ptype self, Ptype target, bool same) |
Private Attributes | |
Ptype | self |
Ptype | target |
bool | same |
Definition at line 15 of file rating/feature/king8.h.
osl::rating::AttackKing8::AttackKing8 | ( | Ptype | s, |
Ptype | t, | ||
bool | ss, | ||
int | attack, | ||
int | defense | ||
) | [inline] |
Definition at line 21 of file rating/feature/king8.h.
bool osl::rating::AttackKing8::match | ( | const NumEffectState & | state, |
Move | move, | ||
const RatingEnv & | env | ||
) | const [inline, virtual] |
Implements osl::rating::Feature.
Definition at line 26 of file rating/feature/king8.h.
References osl::alt(), osl::Move::from(), osl::Move::isDrop(), osl::isPiece(), osl::Square::isPieceStand(), osl::rating::CountEffect2::match(), osl::Piece::owner(), osl::Move::player(), osl::Piece::ptype(), osl::Move::ptype(), osl::Move::ptypeO(), same, target, and osl::Move::to().
const std::string osl::rating::AttackKing8::name | ( | Ptype | self, |
Ptype | target, | ||
bool | same | ||
) | [static, private] |
Definition at line 5 of file rating/feature/king8.cc.
References osl::PtypeTable::getCsaName(), and osl::Ptype_Table.
bool osl::rating::AttackKing8::same [private] |
Definition at line 18 of file rating/feature/king8.h.
Referenced by match().
Ptype osl::rating::AttackKing8::self [private] |
Definition at line 17 of file rating/feature/king8.h.
Ptype osl::rating::AttackKing8::target [private] |
Definition at line 17 of file rating/feature/king8.h.
Referenced by match().