Go to the documentation of this file.
15 template <
int W
idth,
int W
idth2>
19 MIN = -(Width*32+Width),
20 MAX = (Width*32+Width),
31 :
offset32(to.indexForOffset32()-from.indexForOffset32())
33 assert((to.
x()-from.
x() >= -Width) && (to.
x()-from.
x() <= Width)
34 && (to.
y()-from.
y() >= -Width) && (to.
y()-from.
y() <= Width));
38 assert(-Width2<=
dx &&
dx<=Width2 && -Width2<=
dy &&
dy<=Width2);
Offset32Base< 10, 10 > Offset32Wide
Offset32Base< 8, 9 > Offset32
int dx(Offset32Base offset32)
const Offset32Base blackOffset32() const
Player P からみた offset を黒番のものに変更する
Offset32Base(Square to, Square from)
Offset32Base(int dx, int dy)
int x() const
将棋としてのX座標を返す.
int y() const
将棋としてのY座標を返す.
unsigned int index() const
int dy(Offset32Base offset32)
static const unsigned int SIZE
const Offset32Base operator-() const