20 template<osl::Ptype T>
38 template<osl::Ptype T>
47 template<osl::Ptype T>
58 initPtype<PTYPE_EMPTY>();
59 initPtype<PTYPE_EDGE>();
103 if(static_cast<int>(dir)!=
LONG_U){
static const EffectContent DIRECT()
CArray< int, PTYPE_SIZE > indexLimits
CArray< int, PTYPE_SIZE > moveMasks
CArray< const char *, PTYPE_SIZE > csaNames
CArray2d< unsigned int, 2, SHORT_DIRECTION_SIZE > shortMoveMask
Offset32Base< 8, 9 > Offset32
Ptype promote(Ptype ptype)
promote可能なptypeに対して,promote後の型を返す promote不可のptypeを与えてはいけない. ...
PtypeO newPtypeO(Player player, Ptype ptype)
static int reverseY(int y)
CArray< mask_t, PTYPE_SIZE > numMaskLows
CArray2d< EffectContent, PTYPEO_SIZE, Offset32::SIZE > effectTableNotLongU
CArray2d< int, 2, PTYPE_SIZE > canDropLimit
const EffectContent getEffect(PtypeO ptypeo, Square from, Square to) const
fromにいるptypeoがtoに利きを持つか?
CArray< bool, PTYPE_SIZE > betterToPromote
unsigned int index() const
bool canPromote(Ptype ptype)
ptypeがpromote可能な型かどうかのチェック promote済みの場合はfalseを返す
CArray< const char *, PTYPE_SIZE > names
CArray2d< EffectContent, PTYPEO_SIZE, Offset32::SIZE > effectTable
EffectContent & effect(PtypeO ptypeo, Offset32 offset32)
int getDxForBlack(Direction dir) const
Offset newOffset(int dx, int dy)
void fill(const T_simple &value=T_simple())
constexpr bool isLong(Direction d)
int getDyForBlack(Direction dir) const
CArray< int, PTYPE_SIZE > numIndices
CArray< int, PTYPE_SIZE > indexMins
void initPtypeSub(Int2Type< false > isBasic)
const BoardTable Board_Table