My Project
Public Member Functions | Private Attributes | List of all members
osl::rating::Feature Class Referenceabstract

#include <feature.h>

Inheritance diagram for osl::rating::Feature:
osl::rating::AttackKing8 osl::rating::BadLance osl::rating::BigramAttack osl::rating::Block osl::rating::Capture osl::rating::Chase osl::rating::Check osl::rating::CheckmateIfCapture osl::rating::ContinueCapture osl::rating::DefenseKing8 osl::rating::DropCaptured osl::rating::EscapePin osl::rating::FromEffect osl::rating::ImmediateAddSupport osl::rating::ImmediateEscape osl::rating::Karanari osl::rating::KingEscape osl::rating::Open osl::rating::Pattern osl::rating::PatternBlock osl::rating::PatternLong osl::rating::PatternLong2 osl::rating::PawnAttack osl::rating::PinAttack osl::rating::PtypeAttacked osl::rating::RelativeKingX osl::rating::RelativeKingY osl::rating::RookDefense osl::rating::SendOff osl::rating::ShadowEffect1 osl::rating::ShadowEffect2 osl::rating::SquareX osl::rating::SquareY osl::rating::TakeBack osl::rating::TakeBack2 osl::rating::Threatmate osl::rating::ToSupported

Public Member Functions

 Feature (const std::string &name)
 
virtual ~Feature ()
 
virtual bool match (const NumEffectState &state, Move, const RatingEnv &) const =0
 
virtual bool effectiveInCheck () const
 
const std::string & name () const
 

Private Attributes

std::string my_name
 

Detailed Description

Definition at line 14 of file rating/feature.h.

Constructor & Destructor Documentation

◆ Feature()

osl::rating::Feature::Feature ( const std::string &  name)
inline

Definition at line 18 of file rating/feature.h.

◆ ~Feature()

osl::rating::Feature::~Feature ( )
virtual

Definition at line 7 of file feature.cc.

Member Function Documentation

◆ effectiveInCheck()

virtual bool osl::rating::Feature::effectiveInCheck ( ) const
inlinevirtual

◆ match()

virtual bool osl::rating::Feature::match ( const NumEffectState state,
Move  ,
const RatingEnv  
) const
pure virtual

◆ name()

const std::string & osl::rating::Feature::name ( ) const
inline

Definition at line 24 of file rating/feature.h.

References my_name.

Member Data Documentation

◆ my_name

std::string osl::rating::Feature::my_name
private

Definition at line 16 of file rating/feature.h.

Referenced by name().


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