|
constexpr Player | osl::alt (Player player) |
|
constexpr int | osl::playerToIndex (Player player) |
|
constexpr Player | osl::indexToPlayer (int n) |
|
constexpr int | osl::sign (Player player) |
|
constexpr int | osl::playerToMask (Player player) |
|
int | osl::operator+ (Player, int) |
|
int | osl::operator+ (int, Player) |
|
int | osl::operator- (Player, int) |
|
int | osl::operator- (int, Player) |
|
int | osl::operator* (Player, int) |
|
int | osl::operator* (int, Player) |
|
int | osl::operator/ (Player, int) |
|
int | osl::operator/ (int, Player) |
|
bool | osl::isValid (Player player) |
| cast等で作られたplayerが正しいかどうかを返す More...
|
|
std::ostream & | osl::operator<< (std::ostream &os, Player player) |
|
std::istream & | osl::operator>> (std::istream &is, Ptype &ptype) |
|
std::ostream & | osl::operator<< (std::ostream &os, const Ptype ptype) |
|
bool | osl::isValid (Ptype ptype) |
| int等からcastして作ったptypeが,正しい範囲に入っているかどうかのチェック More...
|
|
constexpr bool | osl::isPiece (Ptype ptype) |
| ptypeが空白やEDGEでないかのチェック More...
|
|
bool | osl::isBasic (Ptype ptype) |
| ptypeが基本型(promoteしていない)かのチェック More...
|
|
bool | osl::isPromoted (Ptype ptype) |
| ptypeがpromote後の型かどうかのチェック More...
|
|
bool | osl::canPromote (Ptype ptype) |
| ptypeがpromote可能な型かどうかのチェック promote済みの場合はfalseを返す More...
|
|
Ptype | osl::unpromote (Ptype ptype) |
| ptypeがpromote後の型の時に,promote前の型を返す. promoteしていない型の時はそのまま返す More...
|
|
constexpr Ptype | osl::unpromoteSafe (Ptype ptype) |
|
Ptype | osl::promote (Ptype ptype) |
| promote可能なptypeに対して,promote後の型を返す promote不可のptypeを与えてはいけない. More...
|
|
bool | osl::isMajorBasic (Ptype ptype) |
|
bool | osl::isMajor (Ptype ptype) |
|
bool | osl::isMajorNonPieceOK (Ptype ptype) |
|
unsigned int | osl::ptypeOIndex (PtypeO ptypeo) |
|
PtypeO | osl::newPtypeO (Player player, Ptype ptype) |
|
Ptype | osl::getPtype (PtypeO ptypeO) |
|
PtypeO | osl::promote (PtypeO ptypeO) |
| pieceをpromoteさせる. More...
|
|
PtypeO | osl::promoteWithMask (PtypeO ptypeO, int promoteMask) |
| pieceを引数次第でpromoteさせる More...
|
|
PtypeO | osl::unpromote (PtypeO ptypeO) |
| pieceをunpromoteさせる. More...
|
|
bool | osl::isValidPtypeO (int ptypeO) |
|
bool | osl::isPiece (PtypeO ptypeO) |
| EMPTY, EDGEではない More...
|
|
Player | osl::getOwner (PtypeO ptypeO) |
|
PtypeO | osl::captured (PtypeO ptypeO) |
| unpromoteすると共に,ownerを反転する. More...
|
|
PtypeO | osl::alt (PtypeO ptypeO) |
| owner を反転する More...
|
|
PtypeO | osl::altIfPiece (PtypeO ptypeO) |
| Pieceの時にはowner を反転する More...
|
|
bool | osl::canPromote (PtypeO ptypeO) |
|
bool | osl::isPromoted (PtypeO ptypeO) |
| ptypeOが promote済みかどうか More...
|
|
const PtypeO PTYPEO_EDGE | osl::__attribute__ ((unused)) |
|
std::ostream & | osl::operator<< (std::ostream &os, const PtypeO ptypeO) |
|
constexpr bool | osl::isShort (Direction d) |
|
constexpr bool | osl::isShort8 (Direction d) |
|
constexpr bool | osl::isLong (Direction d) |
|
constexpr Direction | osl::inverseUnsafe (Direction d) |
|
constexpr Direction | osl::inverse (Direction d) |
|
constexpr Direction | osl::primDir (Direction d) |
| 8方向について,primitiveな4方向を求める More...
|
|
constexpr Direction | osl::primDirUnsafe (Direction d) |
| 8方向について,primitiveな4方向を求める dとしてknight, INVALIDなども来る More...
|
|
bool | osl::isValid (Direction d) |
|
constexpr Direction | osl::longToShort (Direction d) |
|
constexpr Direction | osl::shortToLong (Direction d) |
| 引数に longDirを与えてはいけない More...
|
|
constexpr int | osl::dirToMask (Direction dir) |
|
std::ostream & | osl::operator<< (std::ostream &os, const Direction d) |
|
bool | osl::operator== (Square l, Square r) |
|
Offset | osl::newOffset (int dx, int dy) |
|
bool | osl::operator== (Offset l, Offset r) |
|
bool | osl::operator!= (Offset l, Offset r) |
|
bool | osl::operator< (Offset l, Offset r) |
|
std::ostream & | osl::operator<< (std::ostream &, Offset) |
|
bool | osl::operator!= (Square l, Square r) |
|
bool | osl::operator< (Square l, Square r) |
|
bool | osl::operator> (Square l, Square r) |
|
std::ostream & | osl::operator<< (std::ostream &, Square) |
|
bool | osl::operator== (Piece l, Piece r) |
|
bool | osl::operator< (Piece l, Piece r) |
|
bool | osl::operator!= (Piece l, Piece r) |
|
std::ostream & | osl::operator<< (std::ostream &os, const Piece piece) |
|
bool | osl::operator< (Move lhs, Move rhs) |
|
bool | osl::operator== (Move lhs, Move rhs) |
|
bool | osl::operator!= (Move lhs, Move rhs) |
|
std::ostream & | osl::operator<< (std::ostream &os, Move move) |
|