#include <square.h>
Public Member Functions | |
SquareY (int iy, Ptype ptype, bool drop) | |
bool | match (const NumEffectState &, Move move, const RatingEnv &) const |
Static Public Member Functions | |
static int | makeY (Move move) |
Static Private Member Functions | |
static const std::string | name (int y) |
Private Attributes | |
int | y |
Definition at line 146 of file rating/feature/square.h.
osl::rating::SquareY::SquareY | ( | int | iy, |
Ptype | ptype, | ||
bool | drop | ||
) | [inline] |
Definition at line 151 of file rating/feature/square.h.
static int osl::rating::SquareY::makeY | ( | Move | move | ) | [inline, static] |
Definition at line 153 of file rating/feature/square.h.
References osl::Move::player(), osl::Move::to(), osl::WHITE, and osl::Square::y().
Referenced by osl::rating::SquareYGroup::findMatch(), and match().
bool osl::rating::SquareY::match | ( | const NumEffectState & | , |
Move | move, | ||
const RatingEnv & | |||
) | const [inline, virtual] |
Implements osl::rating::Feature.
Definition at line 160 of file rating/feature/square.h.
References makeY(), osl::rating::DropPtype::match(), and y.
const std::string osl::rating::SquareY::name | ( | int | y | ) | [static, private] |
Definition at line 39 of file rating/feature/square.cc.
int osl::rating::SquareY::y [private] |
Definition at line 148 of file rating/feature/square.h.
Referenced by match().