#include <nearMask.h>
Public メソッド | |
NearMask () | |
NearMask & | operator|= (NearMask r) |
NearMask & | operator &= (NearMask r) |
unsigned int | spaceMask () const |
bool | isSet (int n) const |
int | takeOneBit () |
on bit offˤindex֤ | |
bool | any () const |
unsigned int | uintValue () const |
Static Public メソッド | |
static const NearMask | makeDirect (unsigned int value) |
template<typename State, Player P, Direction Dir> | |
static const NearMask | make (State const &state, Position target) |
ޥ,Ĥ褦Ȥ, 10˵ξ֤֤ | |
template<typename State, Player P> | |
static const NearMask | make (State const &state, Position target) |
Private メソッド | |
NearMask (unsigned int value) | |
Private 変数 | |
unsigned int | mask |
֤¦θ 0-9 bit - Direction(UL=0, .., UUR=9)бޥޤŨλ1 16-25 bit - Direction+16(UL=16, .., UUR=25)бޥλ1 ֤ǡޥ(3,3)ܤƤˡULбޥϡ(4,2)ǤϤʤ (2,4)ؤ(2,4)UḶζ֤(3,3)Ǥ뤫
nearMask.h の 21 行で定義されています。
osl::container::NearMask::NearMask | ( | unsigned int | value | ) | [inline, explicit, private] |
nearMask.h の 24 行で定義されています。
osl::container::NearMask::NearMask | ( | ) | [inline] |
static const NearMask osl::container::NearMask::makeDirect | ( | unsigned int | value | ) | [inline, static] |
static const NearMask osl::container::NearMask::make | ( | State const & | state, | |
Position | target | |||
) | [inline, static] |
ޥ,Ĥ褦Ȥ, 10˵ξ֤֤
P(template) | - ¦Υץ쥤䡼 | |
Dir(template) | - θĤΥޥ | |
state | - ̤ɽ | |
target | - Ĥޥ |
⤹¦Υޥ
nearMask.h の 41 行で定義されています。
参照先 osl::Piece::canMoveOn(), osl::Piece::isEmpty(), と NearMask().
unsigned int osl::container::NearMask::spaceMask | ( | ) | const [inline] |
bool osl::container::NearMask::isSet | ( | int | n | ) | const [inline] |
int osl::container::NearMask::takeOneBit | ( | ) | [inline] |
bool osl::container::NearMask::any | ( | ) | const [inline] |
unsigned int osl::container::NearMask::uintValue | ( | ) | const [inline] |
nearMask.h の 89 行で定義されています。
参照先 mask.
参照元 osl::container::operator<(), osl::container::operator<<(), と osl::container::operator==().
unsigned int osl::container::NearMask::mask [private] |
nearMask.h の 23 行で定義されています。
参照元 any(), isSet(), operator &=(), operator|=(), spaceMask(), takeOneBit(), と uintValue().