#include <pattern.h>


Public Member Functions | |
| PatternLong2 (Direction d, Ptype s, LongTarget2 t2) | |
| bool | match (const NumEffectState &state, Move move, const RatingEnv &) const |
Static Public Member Functions | |
| static const Piece | find (const NumEffectState &state, Move move, Direction direction) |
Static Private Member Functions | |
| static const std::string | name (Direction d, Ptype self) |
Private Attributes | |
| Direction | direction |
| Ptype | self |
| LongTarget2 | target2 |
| osl::rating::PatternLong2::PatternLong2 | ( | Direction | d, |
| Ptype | s, | ||
| LongTarget2 | t2 | ||
| ) |
Definition at line 83 of file pattern.cc.
References osl::BISHOP, osl::LANCE, osl::ROOK, and osl::unpromote().
| static const Piece osl::rating::PatternLong2::find | ( | const NumEffectState & | state, |
| Move | move, | ||
| Direction | direction | ||
| ) | [inline, static] |
Definition at line 157 of file pattern.h.
References osl::Board_Table, direction, osl::Move::from(), osl::BoardTable::getOffset(), osl::Piece::isPiece(), osl::Move::player(), osl::Piece::square(), and osl::Move::to().
Referenced by osl::rating::PatternLongGroup2::findMatch(), and match().
| bool osl::rating::PatternLong2::match | ( | const NumEffectState & | state, |
| Move | move, | ||
| const RatingEnv & | |||
| ) | const [inline, virtual] |
Implements osl::rating::Feature.
Definition at line 164 of file pattern.h.
References direction, find(), osl::rating::LongTarget2::match(), osl::Move::ptype(), and target2.
| const std::string osl::rating::PatternLong2::name | ( | Direction | d, |
| Ptype | self | ||
| ) | [static, private] |
Definition at line 90 of file pattern.cc.
References osl::PtypeTable::getCsaName(), and osl::Ptype_Table.
Ptype osl::rating::PatternLong2::self [private] |
1.7.6.1