My Project
|
Square, Owner: 9 bits. More...
#include <miniBoard.h>
Public Member Functions | |
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 = 9 |
Protected Attributes | |
int | value |
Square, Owner: 9 bits.
For GOLD. 1: Owner 0:Black; 1:WHITE 2345: Square x 6789: Square y
Definition at line 19 of file miniBoard.h.
|
inline |
Definition at line 23 of file miniBoard.h.
|
inline |
Definition at line 24 of file miniBoard.h.
References osl::BLACK, osl::Piece::owner(), osl::book::OPiece::position2Bits(), osl::Piece::square(), and value.
|
inline |
Definition at line 35 of file miniBoard.h.
References value.
|
inline |
Definition at line 43 of file miniBoard.h.
References osl::BLACK, value, and osl::WHITE.
Referenced by osl::book::oposition_sort::operator()().
|
inline |
Definition at line 39 of file miniBoard.h.
References osl::book::OPiece::bits2Square(), and value.
Referenced by osl::book::oposition_sort::operator()().
|
inline |
Definition at line 51 of file miniBoard.h.
References value.
|
static |
Definition at line 22 of file miniBoard.h.
Referenced by osl::book::MiniBoard::toBits().
|
protected |
Definition at line 53 of file miniBoard.h.
Referenced by getOwner(), getSquare(), osl::book::OPSquare::isPromoted(), operator int(), osl::book::OPSquare::OPSquare(), OSquare(), and OSquare().