Square, Owner, Promoted : 10 bits. More...
#include <miniBoard.h>
Public Member Functions | |
OPSquare () | |
OPSquare (const Piece &p) | |
OPSquare (const int i) | |
bool | isPromoted () const |
Static Public Attributes | |
static const size_t | total_bits = 10 |
Square, Owner, Promoted : 10 bits.
For PAWN, LANCE, KNIGHT, SILVER, BISHOP and ROOK. 1: Promote 0:unpromoted; 1:promoted 2: Owner 0:Black; 1:WHITE 3456: Square x 789A: Square y
Definition at line 64 of file miniBoard.h.
osl::record::OPSquare::OPSquare | ( | ) | [inline] |
Definition at line 68 of file miniBoard.h.
osl::record::OPSquare::OPSquare | ( | const Piece & | p | ) | [inline] |
Definition at line 69 of file miniBoard.h.
References osl::Piece::isPromoted(), and osl::record::OSquare::value.
osl::record::OPSquare::OPSquare | ( | const int | i | ) | [inline] |
Definition at line 77 of file miniBoard.h.
bool osl::record::OPSquare::isPromoted | ( | ) | const [inline] |
Definition at line 79 of file miniBoard.h.
References osl::record::OSquare::value.
const size_t osl::record::OPSquare::total_bits = 10 [static] |
Reimplemented from osl::record::OSquare.
Definition at line 67 of file miniBoard.h.
Referenced by osl::record::fromBase64(), and osl::record::MiniBoard::toBits().