#include <rzone.h>
Public Member Functions | |
Rzone (NumEffectState state, Player p) | |
state の玉の位置が mask された rzone. | |
Rzone () | |
Rzone (const Square pos) | |
bool | any () const |
rzone が一箇所でも set されているか調べる. | |
bool | test (Square pos) const |
pos に rzone が set されているか調べる. | |
bool | operator== (const Rzone rhs) const |
rzone の比較. | |
Rzone | operator+ (const Rzone rhs) const |
rzone の和. | |
Rzone | operator- (const Rzone rhs) const |
rzone の差. | |
Rzone | update (const Rzone rhs) |
rzone の更新, 差を返す. | |
Private Types | |
typedef std::bitset< 0x100 > | mask_t |
Private Member Functions | |
Rzone (mask_t _mask) | |
Private Attributes | |
mask_t | mask |
Friends | |
std::ostream & | operator<< (std::ostream &os, const Rzone &rzone) |
rzone の出力. |
typedef std::bitset<0x100> osl::ntesuki::Rzone::mask_t [private] |
osl::ntesuki::Rzone::Rzone | ( | NumEffectState | state, |
Player | p | ||
) | [inline] |
state の玉の位置が mask された rzone.
Definition at line 28 of file rzone.h.
References osl::Square::index(), osl::Square::indexMax(), osl::Square::isOnBoard(), and ntesuki_assert.
osl::ntesuki::Rzone::Rzone | ( | ) | [inline] |
osl::ntesuki::Rzone::Rzone | ( | const Square | pos | ) | [inline] |
Definition at line 40 of file rzone.h.
References osl::Square::index(), osl::Square::indexMax(), and ntesuki_assert.
osl::ntesuki::Rzone::Rzone | ( | mask_t | _mask | ) | [inline, private] |
bool osl::ntesuki::Rzone::any | ( | ) | const [inline] |
rzone が一箇所でも set されているか調べる.
Definition at line 48 of file rzone.h.
Referenced by osl::ntesuki::NtesukiMoveGenerator::generateWithRzone().
bool osl::ntesuki::Rzone::operator== | ( | const Rzone | rhs | ) | const [inline] |
bool osl::ntesuki::Rzone::test | ( | Square | pos | ) | const [inline] |
pos に rzone が set されているか調べる.
Definition at line 54 of file rzone.h.
References osl::Square::index().
Referenced by osl::ntesuki::NtesukiMoveGenerator::generateWithRzone().
Rzone osl::ntesuki::Rzone::update | ( | const Rzone | rhs | ) | [inline] |
std::ostream& operator<< | ( | std::ostream & | os, |
const Rzone & | rzone | ||
) | [friend] |
mask_t osl::ntesuki::Rzone::mask [private] |
Definition at line 25 of file rzone.h.
Referenced by operator+(), operator-(), operator==(), and update().