My Project
|
現在の定義 (2005/3/4以降) More...
#include <numBitmapEffect.h>
Public Types | |
enum | Op { Add , Sub } |
Public Member Functions | |
NumBitmapEffect () | |
int | countEffect (Player pl) const |
template<Op OP> | |
NumBitmapEffect & | opEqual (NumBitmapEffect const &rhs) |
const mask_t | selectLong () const |
bool | hasLong () const |
template<Ptype PTYPE> | |
const mask_t | selectLong () const |
template<Ptype PTYPE> | |
bool | hasLong () const |
template<Ptype PTYPE> | |
bool | hasAny () const |
![]() | |
PieceMask () | |
PieceMask (const PieceMaskBase &base) | |
void | setMask (int index, mask_t val) |
void | xorMask (int index, mask_t val) |
void | orMask (int index, mask_t val) |
bool | test (int num) const |
void | set (int num) |
void | flip (int num) |
void | reset (int num) |
bool | any () const |
const mask_t | getMask (int num) const |
template<Ptype PTYPE> | |
const mask_t | getMask () const |
unpromote(PTYPE) の駒のbit を*含む*mask_tを取り出す | |
template<Ptype PTYPE> | |
const mask_t | selectBit () const |
unpromote(PTYPE) の駒のbit だけ取り出す | |
template<Ptype PTYPE> | |
void | clearBit () |
unpromote(PTYPE) の駒のbit を消す | |
template<Ptype PTYPE> | |
void | setBit () |
unpromote(PTYPE) の駒のbit を立てる | |
![]() | |
PieceMask64 () | |
PieceMask64 (misc::Mask64 const &m) | |
const misc::Mask64 & | getMask (int) const |
void | resetAll () |
void | setAll () |
PieceMask64 & | operator^= (const PieceMask64 &o) |
PieceMask64 & | operator&= (const PieceMask64 &o) |
PieceMask64 & | operator|= (const PieceMask64 &o) |
PieceMask64 & | operator-= (const PieceMask64 &o) |
PieceMask64 & | operator+= (const PieceMask64 &o) |
bool | none () const |
bool | hasMultipleBit () const |
int | countBit2 () const |
bit の数を2まで数える | |
int | countBit () const |
int | takeOneBit () |
Static Public Member Functions | |
template<Player P> | |
static NumBitmapEffect | playerEffect () |
static NumBitmapEffect | playerEffect (Player pl) |
template<Player P> | |
static mask_t | playerEffectMask () |
static mask_t | playerEffectMask (Player pl) |
template<Player P> | |
static NumBitmapEffect | makeEffect (int num) |
static const mask_t | longEffectMask () |
static const mask_t | makeLongMask (int num) |
template<Player P> | |
static NumBitmapEffect | makeLongEffect (int num) |
static NumBitmapEffect | makeLongEffect (Player pl, int num) |
![]() | |
static const mask_t | numToMask (int num) |
![]() | |
static int | numToIndex (int) |
static int | numToOffset (int num) |
Additional Inherited Members | |
![]() | |
misc::Mask64 & | mutableMask (int) |
![]() | |
Mask64 | mask |
現在の定義 (2005/3/4以降)
以前の定義 (2004/4/13以降)
以前の定義
Definition at line 28 of file numBitmapEffect.h.
Enumerator | |
---|---|
Add | |
Sub |
Definition at line 95 of file numBitmapEffect.h.
|
inline |
Definition at line 31 of file numBitmapEffect.h.
References osl::container::PieceMask64::resetAll().
|
inline |
Definition at line 81 of file numBitmapEffect.h.
References osl::PieceMask::getMask(), osl::container::PieceMask64::mask, and osl::container::PieceMask64::numToOffset().
Referenced by osl::NumEffectState::countEffect(), osl::NumEffectState::countEffect(), osl::eval::ml::King25EffectEachBoth::effectStateIndex3(), osl::eval::ml::RookPromoteDefense::eval(), and osl::progress::ml::NewProgress::updateAttack5x5PiecesAndState().
|
inline |
Definition at line 155 of file numBitmapEffect.h.
References osl::PieceMask::getMask().
|
inline |
Definition at line 142 of file numBitmapEffect.h.
References selectLong().
|
inline |
Definition at line 151 of file numBitmapEffect.h.
|
inlinestatic |
Definition at line 107 of file numBitmapEffect.h.
Referenced by osl::NumEffectState::hasEffectInDirection(), and selectLong().
|
inlinestatic |
Definition at line 90 of file numBitmapEffect.h.
References osl::PieceMask::flip().
|
inlinestatic |
Definition at line 124 of file numBitmapEffect.h.
References makeLongMask(), and osl::PieceMask::orMask().
|
inlinestatic |
Definition at line 130 of file numBitmapEffect.h.
References makeLongMask(), osl::PieceMask::orMask(), and playerEffect().
|
inlinestatic |
Definition at line 119 of file numBitmapEffect.h.
References osl::container::PieceMask64::numToOffset().
Referenced by makeLongEffect(), and makeLongEffect().
|
inline |
Definition at line 99 of file numBitmapEffect.h.
References Add.
|
inlinestatic |
Definition at line 35 of file numBitmapEffect.h.
References osl::BLACK, and osl::PieceMask::flip().
Referenced by osl::NumEffectState::hasMultipleEffectAt(), and makeLongEffect().
|
inlinestatic |
Definition at line 41 of file numBitmapEffect.h.
References osl::BLACK, osl::PieceMask::numToMask(), osl::PieceMask::setMask(), and osl::WHITE.
|
inlinestatic |
Definition at line 53 of file numBitmapEffect.h.
References osl::BLACK, and osl::PieceMask::numToMask().
Referenced by osl::effect::NumSimpleEffectTable::doEffectLong(), osl::effect::NumSimpleEffectTable::doEffectShort(), osl::NumEffectState::hasEffectAt(), and osl::NumEffectState::hasMultipleEffectAt().
|
inlinestatic |
Definition at line 65 of file numBitmapEffect.h.
References osl::BLACK, osl::PieceMask::numToMask(), and osl::WHITE.
|
inline |
Definition at line 138 of file numBitmapEffect.h.
References osl::PieceMask::getMask(), and longEffectMask().
Referenced by hasLong(), osl::NumEffectState::longEffectAt(), osl::move_probability::ToEffectLong::match(), and selectLong().
|
inline |
Definition at line 146 of file numBitmapEffect.h.
References selectLong().