My Project
Public Member Functions | Protected Attributes | List of all members
osl::eval::PtypeEvalTable Class Reference

#include <ptypeEval.h>

Inheritance diagram for osl::eval::PtypeEvalTable:
osl::eval::ml::OpenMidEndingPtypeTable

Public Member Functions

 PtypeEvalTable ()
 
 ~PtypeEvalTable ()
 
void init ()
 
int value (PtypeO ptypeO) const
 先手から見たptypeOの駒の価値
 
int value (Ptype ptype) const
 ptypeの駒の価値
 
int promoteValue (PtypeO ptypeO) const
 ptypeOにpromoteした時の評価値の増減
 
int captureValue (PtypeO ptypeO) const
 ownerのptypeOがcaptureされた時の評価値の増減
 
int diffWithMove (const NumEffectState &, Move move) const
 
void reset (const CArray< int, PTYPE_SIZE > &values)
 

Protected Attributes

CArray< int, PTYPEO_SIZEptypeO2Val
 
CArray< int, PTYPEO_SIZEpromoteVal
 
CArray< int, PTYPEO_SIZEcaptureVal
 

Detailed Description

Definition at line 15 of file ptypeEval.h.

Constructor & Destructor Documentation

◆ PtypeEvalTable()

osl::eval::PtypeEvalTable::PtypeEvalTable ( )

Definition at line 2 of file ptypeEval.cc.

References init().

◆ ~PtypeEvalTable()

osl::eval::PtypeEvalTable::~PtypeEvalTable ( )

Definition at line 22 of file ptypeEval.cc.

Member Function Documentation

◆ captureValue()

int osl::eval::PtypeEvalTable::captureValue ( PtypeO  ptypeO) const
inline

ownerのptypeOがcaptureされた時の評価値の増減

Definition at line 50 of file ptypeEval.h.

References captureVal, osl::isValidPtypeO(), and osl::PTYPEO_MIN.

Referenced by osl::eval::See::computeValue(), and diffWithMove().

◆ diffWithMove()

int osl::eval::PtypeEvalTable::diffWithMove ( const NumEffectState ,
Move  move 
) const
inline

◆ init()

void osl::eval::PtypeEvalTable::init ( )

Definition at line 6 of file ptypeEval.cc.

Referenced by PtypeEvalTable().

◆ promoteValue()

int osl::eval::PtypeEvalTable::promoteValue ( PtypeO  ptypeO) const
inline

ptypeOにpromoteした時の評価値の増減

Definition at line 43 of file ptypeEval.h.

References osl::isPromoted(), promoteVal, and osl::PTYPEO_MIN.

Referenced by osl::eval::See::computeValue(), and diffWithMove().

◆ reset()

void osl::eval::PtypeEvalTable::reset ( const CArray< int, PTYPE_SIZE > &  values)

◆ value() [1/2]

int osl::eval::PtypeEvalTable::value ( Ptype  ptype) const
inline

ptypeの駒の価値

Definition at line 36 of file ptypeEval.h.

References osl::isValid(), ptypeO2Val, and osl::PTYPEO_MIN.

◆ value() [2/2]

int osl::eval::PtypeEvalTable::value ( PtypeO  ptypeO) const
inline

先手から見たptypeOの駒の価値

Definition at line 29 of file ptypeEval.h.

References osl::isValidPtypeO(), ptypeO2Val, and osl::PTYPEO_MIN.

Referenced by osl::eval::ml::PieceEval::setUp().

Member Data Documentation

◆ captureVal

CArray<int, PTYPEO_SIZE> osl::eval::PtypeEvalTable::captureVal
protected

Definition at line 20 of file ptypeEval.h.

Referenced by captureValue().

◆ promoteVal

CArray<int, PTYPEO_SIZE> osl::eval::PtypeEvalTable::promoteVal
protected

Definition at line 19 of file ptypeEval.h.

Referenced by promoteValue().

◆ ptypeO2Val

CArray<int, PTYPEO_SIZE> osl::eval::PtypeEvalTable::ptypeO2Val
protected

Definition at line 18 of file ptypeEval.h.

Referenced by value(), and value().


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