My Project
osl::rating::SquareY Class Reference

#include <square.h>

Inheritance diagram for osl::rating::SquareY:
osl::rating::Feature osl::rating::DropPtype

Public Member Functions

 SquareY (int iy, Ptype ptype, bool drop)
bool match (const NumEffectState &, Move move, const RatingEnv &) const
Public Member Functions inherited from osl::rating::Feature
 Feature (const std::string &name)
virtual ~Feature ()
virtual bool effectiveInCheck () const
const std::string & name () const

Static Public Member Functions

static int makeY (Move move)

Static Private Member Functions

static const std::string name (int y)
Static Private Member Functions inherited from osl::rating::DropPtype
static std::string name (Ptype ptype, bool drop)
static int index (Move move)

Private Attributes

int y
Private Attributes inherited from osl::rating::DropPtype
Ptype ptype
bool drop

Additional Inherited Members

Private Types inherited from osl::rating::DropPtype
enum  { UNIT = PTYPE_MAX+1-PTYPE_PIECE_MIN + (PTYPE_MAX+1 - (PTYPE_BASIC_MIN+1)) }
Private Member Functions inherited from osl::rating::DropPtype
 DropPtype (Ptype p, bool d)
bool match (Move m) const

Detailed Description

Definition at line 146 of file square.h.

Constructor & Destructor Documentation

◆ SquareY()

osl::rating::SquareY::SquareY ( int iy,
Ptype ptype,
bool drop )
inline

Member Function Documentation

◆ makeY()

int osl::rating::SquareY::makeY ( Move move)
inlinestatic

◆ match()

bool osl::rating::SquareY::match ( const NumEffectState & ,
Move move,
const RatingEnv &  ) const
inlinevirtual

Implements osl::rating::Feature.

Definition at line 160 of file square.h.

References makeY(), osl::rating::DropPtype::match(), and y.

◆ name()

const std::string osl::rating::SquareY::name ( int y)
staticprivate

Definition at line 39 of file square.cc.

References y.

Referenced by SquareY().

Member Data Documentation

◆ y

int osl::rating::SquareY::y
private

Definition at line 148 of file square.h.

Referenced by match(), name(), and SquareY().


The documentation for this class was generated from the following files: