自分の駒があるマスの8近傍の敵の利きの状態を得る. More...
#include <liberty8.h>
Public Member Functions | |
Liberty8 (NumEffectState const &state, Square target) | |
void | andMask (NearMask m) |
NearMask | getMask () const |
int | count () const |
8 bit のテーブルを使って速く計算できるが | |
Private Member Functions | |
template<Ptype T> | |
void | addMaskPtype (NumEffectState const &state, Square target, NearMask nearMask) |
template<typename U > | |
void | addMask (NumEffectState const &state, Square target, NearMask nearMask, U) |
void | addMask (NumEffectState const &, Square, NearMask, ptl::NullPtype) |
template<Ptype T, typename Tail > | |
void | addMask (NumEffectState const &state, Square target, NearMask nearMask, ptl::PtypeList< T, Tail >) |
Private Attributes | |
NearMask | mask |
自分の駒があるマスの8近傍の敵の利きの状態を得る.
Definition at line 109 of file liberty8.h.
osl::effect::Liberty8< P >::Liberty8 | ( | NumEffectState const & | state, |
Square | target | ||
) |
targetには必ず P 側の駒があるべき
10近傍の駒の有無を記録 本当は8近傍で良いのだが
下位8ビットのみで良い TODO: これの型は NearMask とは別であるべき?
Definition at line 160 of file liberty8.h.
References target.
void osl::effect::Liberty8< P >::addMask | ( | NumEffectState const & | state, |
Square | target, | ||
NearMask | nearMask, | ||
U | |||
) | [private] |
Referenced by osl::effect::Liberty8< P >::addMask().
void osl::effect::Liberty8< P >::addMask | ( | NumEffectState const & | , |
Square | , | ||
NearMask | , | ||
ptl::NullPtype | |||
) | [inline, private] |
Definition at line 126 of file liberty8.h.
void osl::effect::Liberty8< P >::addMask | ( | NumEffectState const & | state, |
Square | target, | ||
NearMask | nearMask, | ||
ptl::PtypeList< T, Tail > | |||
) | [inline, private] |
Definition at line 129 of file liberty8.h.
References osl::effect::Liberty8< P >::addMask(), and target.
void osl::effect::Liberty8< P >::addMaskPtype | ( | NumEffectState const & | state, |
Square | target, | ||
NearMask | nearMask | ||
) | [inline, private] |
Definition at line 116 of file liberty8.h.
void osl::effect::Liberty8< P >::andMask | ( | NearMask | m | ) | [inline] |
Definition at line 136 of file liberty8.h.
References osl::effect::Liberty8< P >::mask.
int osl::effect::Liberty8< P >::count | ( | ) | const [inline] |
8 bit のテーブルを使って速く計算できるが
Definition at line 145 of file liberty8.h.
References osl::effect::Liberty8< P >::mask.
NearMask osl::effect::Liberty8< P >::getMask | ( | ) | const [inline] |
Definition at line 139 of file liberty8.h.
References osl::effect::Liberty8< P >::mask.
NearMask osl::effect::Liberty8< P >::mask [private] |
Definition at line 113 of file liberty8.h.
Referenced by osl::effect::Liberty8< P >::andMask(), osl::effect::Liberty8< P >::count(), and osl::effect::Liberty8< P >::getMask().