Square, Owner, Promoted : 10 bits. More...
#include <miniBoard.h>


| Public Member Functions | |
| OPSquare () | |
| OPSquare (const Piece &p) | |
| OPSquare (const int i) | |
| bool | isPromoted () const | 
|  Public Member Functions inherited from osl::record::OSquare | |
| OSquare () | |
| OSquare (const Piece &p) | |
| OSquare (const int i) | |
| Square | getSquare () const | 
| Player | getOwner () const | 
| operator int () const | |
| Static Public Attributes | |
| static const size_t | total_bits = 10 | 
|  Static Public Attributes inherited from osl::record::OSquare | |
| static const size_t | total_bits = 9 | 
| Additional Inherited Members | |
|  Protected Attributes inherited from osl::record::OSquare | |
| int | value | 
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.
| 
 | inline | 
Definition at line 68 of file miniBoard.h.
| 
 | inline | 
Definition at line 69 of file miniBoard.h.
References osl::Piece::isPromoted(), and osl::record::OSquare::value.
| 
 | inline | 
Definition at line 77 of file miniBoard.h.
| 
 | inline | 
Definition at line 79 of file miniBoard.h.
References osl::record::OSquare::value.
| 
 | static | 
Definition at line 67 of file miniBoard.h.
Referenced by osl::record::fromBase64(), and osl::record::MiniBoard::toBits().
 1.8.4
 1.8.4