ゲームの進行度を駒が自陣からどの程度前に進んでいるかの和で表現 More...
#include <ptypeProgress.h>
Public Member Functions | |
PtypeProgressTable () | |
~PtypeProgressTable () | |
int | progress (PtypeO ptypeo, Square pos) const |
Private Attributes | |
CArray< int, PTYPE_SIZE > | ptype2Val |
CArray2d< int, PTYPEO_SIZE, Square::SIZE > | pos2Val |
Static Private Attributes | |
static const CArray< int, 10 > | yVals |
y 座標に対応した進行度の係数、最初は0 (使用しない) |
ゲームの進行度を駒が自陣からどの程度前に進んでいるかの和で表現
Definition at line 16 of file ptypeProgress.h.
Definition at line 102 of file ptypeProgress.cc.
References osl::BISHOP, osl::BLACK, osl::GOLD, osl::Square::index(), osl::KING, osl::KNIGHT, osl::LANCE, osl::newPtypeO(), osl::PAWN, osl::PBISHOP, osl::PKNIGHT, osl::PLANCE, pos2Val, osl::PPAWN, osl::PROOK, osl::PSILVER, ptype2Val, osl::PTYPE_MAX, osl::PTYPE_MIN, osl::PTYPEO_MIN, osl::ROOK, osl::SILVER, osl::Square::STAND(), osl::progress::PtypeProgressTraits< PAWN >::val, osl::progress::PtypeProgressTraits< PPAWN >::val, osl::progress::PtypeProgressTraits< LANCE >::val, osl::progress::PtypeProgressTraits< PLANCE >::val, osl::progress::PtypeProgressTraits< KNIGHT >::val, osl::progress::PtypeProgressTraits< PKNIGHT >::val, osl::progress::PtypeProgressTraits< SILVER >::val, osl::progress::PtypeProgressTraits< PSILVER >::val, osl::progress::PtypeProgressTraits< GOLD >::val, osl::progress::PtypeProgressTraits< BISHOP >::val, osl::progress::PtypeProgressTraits< PBISHOP >::val, osl::progress::PtypeProgressTraits< ROOK >::val, osl::progress::PtypeProgressTraits< PROOK >::val, osl::progress::PtypeProgressTraits< KING >::val, osl::WHITE, and yVals.
Definition at line 135 of file ptypeProgress.cc.
int osl::progress::PtypeProgressTable::progress | ( | PtypeO | ptypeo, |
Square | pos | ||
) | const [inline] |
Definition at line 25 of file ptypeProgress.h.
References osl::Square::index(), pos2Val, and osl::PTYPEO_MIN.
Referenced by osl::progress::PtypeProgress::PtypeProgress(), and osl::progress::PtypeProgress::update().
CArray2d<int,PTYPEO_SIZE,Square::SIZE> osl::progress::PtypeProgressTable::pos2Val [private] |
Definition at line 20 of file ptypeProgress.h.
Referenced by progress(), and PtypeProgressTable().
CArray<int,PTYPE_SIZE> osl::progress::PtypeProgressTable::ptype2Val [private] |
Definition at line 19 of file ptypeProgress.h.
Referenced by PtypeProgressTable().
const osl::CArray< int, 10 > osl::progress::PtypeProgressTable::yVals [static, private] |
{{ 0,4,4,4,3,2,1,0,0,0 }}
y 座標に対応した進行度の係数、最初は0 (使用しない)
Definition at line 21 of file ptypeProgress.h.
Referenced by PtypeProgressTable().