My Project
|
玉の周囲5x3の領域の利きの数ら計算した自玉のまわりの利きの数。 5x3領域は盤面内になるように補正する. 黒と白の両方の進行度を持つ. Effect5x3 との違い持駒の重みなし More...
#include <effect5x3d.h>
Public Member Functions | |
Effect5x3d (const NumEffectState &state) | |
void | changeTurn () |
int | progress (Player p) const |
const Progress16 | progress16 () const |
const Progress16 | progress16 (Player p) const |
void | update (const NumEffectState &new_state, Move last_move) |
Static Public Member Functions | |
static int | makeProgress (Player defense, const NumEffectState &state, Square king) |
王の位置を指定したprogressの計算. | |
static int | makeProgress (Player defense, const NumEffectState &state) |
static int | makeProgress (const NumEffectState &state) |
static const Progress16 | progress16 (int progress) |
0-15 の値を返す | |
static const Progress16 | progress16each (int progress) |
0-15 の値を返す. | |
Private Attributes | |
CArray< int, 2 > | progresses |
玉の周囲5x3の領域の利きの数ら計算した自玉のまわりの利きの数。 5x3領域は盤面内になるように補正する. 黒と白の両方の進行度を持つ. Effect5x3 との違い持駒の重みなし
Definition at line 19 of file effect5x3d.h.
|
inlineexplicit |
Definition at line 60 of file effect5x3d.h.
References osl::BLACK, makeProgress(), progresses, and osl::WHITE.
|
inline |
Definition at line 65 of file effect5x3d.h.
|
inlinestatic |
Definition at line 34 of file effect5x3d.h.
References osl::BLACK, makeProgress(), and osl::WHITE.
|
inlinestatic |
Definition at line 31 of file effect5x3d.h.
References osl::SimpleState::kingSquare(), and makeProgress().
|
static |
王の位置を指定したprogressの計算.
defense | - こちらの玉に注目したprogress |
state | - 盤面 |
king | - 玉の位置がここにあるとする. 一般には,盤面から玉の位置は特定できるが,差分計算の途中では 一致しないとして呼び出すことがある. |
Definition at line 7 of file effect5x3d.cc.
References osl::NumEffectState::countEffect(), osl::progress::Effect5x3_Table, osl::progress::Effect5x3Table::getDefenseEffect(), osl::Square::x(), and osl::Square::y().
Referenced by Effect5x3d(), makeProgress(), and makeProgress().
|
inline |
|
inline |
Definition at line 67 of file effect5x3d.h.
References progress16(), and progresses.
Referenced by progress16().
|
inlinestatic |
0-15 の値を返す
Definition at line 41 of file effect5x3d.h.
|
inline |
Definition at line 71 of file effect5x3d.h.
References progress(), and progress16each().
|
inlinestatic |
void osl::progress::Effect5x3d::update | ( | const NumEffectState & | new_state, |
Move | last_move | ||
) |
Definition at line 33 of file effect5x3d.cc.
References osl::container::BoardMask::anyInRange(), osl::BLACK, osl::NumEffectState::changedEffects(), osl::SimpleState::kingSquare(), osl::container::BoardMaskTable5x3Center::mask(), and osl::WHITE.
|
private |
Definition at line 58 of file effect5x3d.h.
Referenced by Effect5x3d(), progress(), and progress16().