#include <pinAttack.h>


Public Member Functions | |
| PinAttack (bool a, Ptype s, Ptype t) | |
| bool | match (const NumEffectState &state, Move move, const RatingEnv &, Piece p) const |
| bool | match (const NumEffectState &state, Move move, const RatingEnv &env) const |
Static Public Member Functions | |
| static int | index (const NumEffectState &state, Move move, const RatingEnv &, bool attack, Piece p) |
| static int | index (const NumEffectState &state, Move move, const RatingEnv &env, bool attack) |
| static const std::string | name (bool attack, Ptype self, Ptype target) |
Private Attributes | |
| bool | attack |
| Ptype | self |
| Ptype | target |
Definition at line 13 of file pinAttack.h.
| osl::rating::PinAttack::PinAttack | ( | bool | a, |
| Ptype | s, | ||
| Ptype | t | ||
| ) | [inline] |
Definition at line 18 of file pinAttack.h.
| static int osl::rating::PinAttack::index | ( | const NumEffectState & | state, |
| Move | move, | ||
| const RatingEnv & | , | ||
| bool | attack, | ||
| Piece | p | ||
| ) | [inline, static] |
Definition at line 45 of file pinAttack.h.
References osl::Move::from(), osl::Move::isDrop(), osl::Piece::ptype(), osl::Move::ptype(), osl::PTYPE_MAX, osl::PTYPE_PIECE_MIN, osl::Move::ptypeO(), osl::Piece::square(), and osl::Move::to().
Referenced by osl::rating::PinGroup::findMatch(), and index().
| static int osl::rating::PinAttack::index | ( | const NumEffectState & | state, |
| Move | move, | ||
| const RatingEnv & | env, | ||
| bool | attack | ||
| ) | [inline, static] |
Definition at line 55 of file pinAttack.h.
References osl::alt(), index(), osl::rating::RatingEnv::my_pin, osl::rating::RatingEnv::op_pin, and osl::Move::to().
| bool osl::rating::PinAttack::match | ( | const NumEffectState & | state, |
| Move | move, | ||
| const RatingEnv & | , | ||
| Piece | p | ||
| ) | const [inline] |
Definition at line 23 of file pinAttack.h.
References osl::Move::from(), osl::Move::isDrop(), osl::Piece::ptype(), osl::Move::ptypeO(), osl::Piece::square(), target, and osl::Move::to().
Referenced by match().
| bool osl::rating::PinAttack::match | ( | const NumEffectState & | state, |
| Move | move, | ||
| const RatingEnv & | env | ||
| ) | const [inline, virtual] |
Implements osl::rating::Feature.
Definition at line 31 of file pinAttack.h.
References osl::alt(), attack, match(), osl::rating::RatingEnv::my_pin, osl::rating::RatingEnv::op_pin, osl::Move::ptype(), and osl::Move::to().
| static const std::string osl::rating::PinAttack::name | ( | bool | attack, |
| Ptype | self, | ||
| Ptype | target | ||
| ) | [inline, static] |
Definition at line 68 of file pinAttack.h.
References osl::PtypeTable::getCsaName(), and osl::Ptype_Table.
bool osl::rating::PinAttack::attack [private] |
Definition at line 15 of file pinAttack.h.
Referenced by match().
Ptype osl::rating::PinAttack::self [private] |
Definition at line 16 of file pinAttack.h.
Ptype osl::rating::PinAttack::target [private] |
Definition at line 16 of file pinAttack.h.
Referenced by match().
1.7.6.1