差が uniqになるような座標の差分. More...
#include <offset32.h>
Public Member Functions | |
Offset32Base (Square to, Square from) | |
Offset32Base (int dx, int dy) | |
unsigned int | index () const |
bool | isValid () const |
template<Player P> | |
const Offset32Base | blackOffset32 () const |
Player P からみた offset を黒番のものに変更する | |
const Offset32Base | operator- () const |
Static Public Attributes | |
static const unsigned int | SIZE = (MAX-MIN+1) |
Private Types | |
enum | { MIN = -(Width*32+Width), MAX = (Width*32+Width) } |
Private Member Functions | |
Offset32Base (int o) | |
const Offset32Base | blackOffset32 (Int2Type< BLACK >) const |
const Offset32Base | blackOffset32 (Int2Type< WHITE >) const |
int | dx (Offset32Base offset32) |
int | dy (Offset32Base offset32) |
Private Attributes | |
int | offset32 |
差が uniqになるような座標の差分.
x*32+y同士の差を取る ちょっとだけ溢れても良い
Definition at line 17 of file offset32.h.
anonymous enum [private] |
Definition at line 19 of file offset32.h.
osl::Offset32Base< Width, Width2 >::Offset32Base | ( | int | o | ) | [inline, explicit, private] |
Definition at line 27 of file offset32.h.
Referenced by osl::Offset32Base< Width, Width2 >::blackOffset32(), and osl::Offset32Base< Width, Width2 >::operator-().
osl::Offset32Base< Width, Width2 >::Offset32Base | ( | Square | to, |
Square | from | ||
) | [inline] |
Definition at line 31 of file offset32.h.
References osl::Offset32Base< Width, Width2 >::MAX, osl::Offset32Base< Width, Width2 >::MIN, osl::Offset32Base< Width, Width2 >::offset32, osl::Square::x(), and osl::Square::y().
osl::Offset32Base< Width, Width2 >::Offset32Base | ( | int | dx, |
int | dy | ||
) | [inline] |
Definition at line 38 of file offset32.h.
const Offset32Base osl::Offset32Base< Width, Width2 >::blackOffset32 | ( | Int2Type< BLACK > | ) | const [inline, private] |
Definition at line 50 of file offset32.h.
Referenced by osl::BoardTable::getLongDirection().
const Offset32Base osl::Offset32Base< Width, Width2 >::blackOffset32 | ( | Int2Type< WHITE > | ) | const [inline, private] |
Definition at line 51 of file offset32.h.
References osl::Offset32Base< Width, Width2 >::offset32, and osl::Offset32Base< Width, Width2 >::Offset32Base().
const Offset32Base osl::Offset32Base< Width, Width2 >::blackOffset32 | ( | ) | const [inline] |
Player P からみた offset を黒番のものに変更する
Definition at line 57 of file offset32.h.
References osl::Offset32Base< Width, Width2 >::blackOffset32().
Referenced by osl::Offset32Base< Width, Width2 >::blackOffset32().
int osl::Offset32Base< Width, Width2 >::dx | ( | Offset32Base< Width, Width2 > | offset32 | ) | [private] |
int osl::Offset32Base< Width, Width2 >::dy | ( | Offset32Base< Width, Width2 > | offset32 | ) | [private] |
unsigned int osl::Offset32Base< Width, Width2 >::index | ( | ) | const [inline] |
Definition at line 41 of file offset32.h.
References osl::Offset32Base< Width, Width2 >::MIN, and osl::Offset32Base< Width, Width2 >::offset32.
Referenced by osl::progress::Effect5x3Table::countShortEffect(), osl::PtypeTable::effect(), osl::effect_util::Neighboring8Direct::Table::findNearest(), osl::move_generator::addeffect8::AddEffect8Table::getBetweenOffset(), osl::progress::Effect5x3Table::getBlockEffect(), osl::PtypeTable::getEffect(), osl::progress::Effect5x3Table::getLongEffect(), osl::move_generator::addeffect8::AddEffect8Table::getLongMoveOffset(), osl::move_generator::addeffect8::AddEffect8Table::getShortMoveOffset(), osl::BoardTable::getShortOffset(), osl::BoardTable::getShortOffsetNotKnight(), osl::effect_util::Neighboring8Direct::Table::hasEffect(), osl::effect_util::Neighboring8Effect::Table::hasEffect(), osl::effect_util::Neighboring8Direct::Table::hasEffectOrAdditional(), osl::effect_util::Neighboring8Direct::Table::init(), osl::effect_util::Neighboring8Effect::Table::init(), osl::PtypeTable::init(), osl::move_generator::addeffect8::AddEffect8Table::initMoveOffset(), osl::effect::Liberty8Table::Liberty8Table(), osl::effect::Liberty8Table::longEffectOf(), osl::BoardTable::setDirections(), osl::BoardTable::setKnightDirections(), osl::progress::Effect5x3Table::setupBlockEffect(), osl::progress::Effect5x3Table::setupLongEffect(), osl::progress::Effect5x3Table::setupShortEffect(), and osl::BoardTable::spaceCounts().
bool osl::Offset32Base< Width, Width2 >::isValid | ( | ) | const [inline] |
Definition at line 45 of file offset32.h.
References osl::Offset32Base< Width, Width2 >::MAX, osl::Offset32Base< Width, Width2 >::MIN, and osl::Offset32Base< Width, Width2 >::offset32.
Referenced by osl::BoardTable::getLongDirection(), osl::BoardTable::getShortOffset(), and osl::BoardTable::getShortOffsetNotKnight().
const Offset32Base osl::Offset32Base< Width, Width2 >::operator- | ( | ) | const [inline] |
Definition at line 59 of file offset32.h.
References osl::Offset32Base< Width, Width2 >::offset32, and osl::Offset32Base< Width, Width2 >::Offset32Base().
int osl::Offset32Base< Width, Width2 >::offset32 [private] |
Definition at line 26 of file offset32.h.
Referenced by osl::Offset32Base< Width, Width2 >::blackOffset32(), osl::Offset32Base< Width, Width2 >::index(), osl::Offset32Base< Width, Width2 >::isValid(), osl::Offset32Base< Width, Width2 >::Offset32Base(), and osl::Offset32Base< Width, Width2 >::operator-().
const unsigned int osl::Offset32Base< Width, Width2 >::SIZE = (MAX-MIN+1) [static] |
Definition at line 24 of file offset32.h.