#include <minorPiece.h>

Public Types | |
| enum | { DIM = 9 } |
Public Member Functions | |
| template<osl::Player P> | |
| bool | cantAdvance (const osl::state::NumEffectState &state, const osl::Piece knight) |
Static Public Member Functions | |
| static void | setUp (const Weights &weights, int stage) |
| static MultiInt | eval (const NumEffectState &state) |
Static Private Member Functions | |
| static int | index (Player P, Square pos) |
| template<Player P> | |
| static bool | cantAdvance (const NumEffectState &state, const Piece knight) |
Static Private Attributes | |
| static CArray< MultiInt, 9 > | table |
Definition at line 699 of file minorPiece.h.
| anonymous enum |
Definition at line 702 of file minorPiece.h.
| bool osl::eval::ml::KnightAdvance::cantAdvance | ( | const osl::state::NumEffectState & | state, |
| const osl::Piece | knight | ||
| ) | [inline] |
Definition at line 457 of file minorPiece.cc.
References osl::Piece::canMoveOn(), osl::Piece::owner(), osl::state::SimpleState::pieceAt(), and osl::Piece::square().
| static bool osl::eval::ml::KnightAdvance::cantAdvance | ( | const NumEffectState & | state, |
| const Piece | knight | ||
| ) | [static, private] |
| MultiInt osl::eval::ml::KnightAdvance::eval | ( | const NumEffectState & | state | ) | [static] |
Definition at line 483 of file minorPiece.cc.
References osl::BLACK, osl::PtypeTraits< KNIGHT >::indexMin, osl::Piece::isOnBoard(), osl::Piece::isPromoted(), osl::Piece::owner(), result, osl::Piece::square(), and osl::WHITE.
Referenced by osl::eval::ml::OpenMidEndingEval::OpenMidEndingEval(), and osl::eval::ml::OpenMidEndingEval::updateSub().
| static int osl::eval::ml::KnightAdvance::index | ( | Player | P, |
| Square | pos | ||
| ) | [inline, static, private] |
Definition at line 705 of file minorPiece.h.
References osl::BLACK, and osl::Square::y().
| void osl::eval::ml::KnightAdvance::setUp | ( | const Weights & | weights, |
| int | stage | ||
| ) | [static] |
Definition at line 476 of file minorPiece.cc.
References osl::eval::ml::Weights::dimension(), and osl::eval::ml::Weights::value().
osl::misc::CArray< MultiInt, 9 > osl::eval::ml::KnightAdvance::table [static, private] |
Definition at line 704 of file minorPiece.h.
1.7.6.1