My Project
Public Types | Public Member Functions | Static Public Member Functions | Private Attributes | List of all members
osl::rating::Chase Class Reference

#include <feature.h>

Inheritance diagram for osl::rating::Chase:
osl::rating::Feature

Public Types

enum  OpponentType { CAPTURE , DROP , ESCAPE , OTHER }
 

Public Member Functions

 Chase (Ptype s, Ptype t, bool d, OpponentType o)
 
bool match (const NumEffectState &state, Move move, const RatingEnv &env) 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 const std::string name (Ptype, Ptype, bool, OpponentType)
 

Private Attributes

Ptype self
 
Ptype target
 
bool drop
 
OpponentType opponent_type
 

Detailed Description

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

Member Enumeration Documentation

◆ OpponentType

Enumerator
CAPTURE 
DROP 
ESCAPE 
OTHER 

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

Constructor & Destructor Documentation

◆ Chase()

osl::rating::Chase::Chase ( Ptype  s,
Ptype  t,
bool  d,
OpponentType  o 
)
inline

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

Member Function Documentation

◆ match()

bool osl::rating::Chase::match ( const NumEffectState state,
Move  move,
const RatingEnv env 
) const
inlinevirtual

◆ name()

const std::string osl::rating::Chase::name ( Ptype  self,
Ptype  target,
bool  drop,
OpponentType  opponent_type 
)
static

Definition at line 138 of file feature.cc.

References osl::PtypeTable::getCsaName(), and osl::Ptype_Table.

Member Data Documentation

◆ drop

bool osl::rating::Chase::drop
private

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

Referenced by match().

◆ opponent_type

OpponentType osl::rating::Chase::opponent_type
private

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

Referenced by match().

◆ self

Ptype osl::rating::Chase::self
private

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

Referenced by match().

◆ target

Ptype osl::rating::Chase::target
private

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

Referenced by match().


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