#include <compactBoard.h>
Public Member Functions | |
OPiece (Piece p) | |
OPiece (int i) | |
Square | getSquare () const |
Ptype | getPtype () const |
Player | getOwner () const |
operator int () const | |
Static Public Member Functions | |
static int | position2Bits (const Square &pos) |
Converts a position to an integer (bits) More... | |
static Square | bits2Square (const int bit_position) |
Converts an integer (bits) to Square. More... | |
Private Attributes | |
int | value |
Definition at line 11 of file compactBoard.h.
|
inline |
Definition at line 14 of file compactBoard.h.
References osl::Piece::owner(), position2Bits(), osl::Piece::ptype(), osl::Piece::square(), and value.
|
inline |
Definition at line 21 of file compactBoard.h.
References value.
|
static |
Converts an integer (bits) to Square.
Definition at line 17 of file compactBoard.cc.
Referenced by getSquare(), osl::record::OSquare::getSquare(), and osl::record::MiniBoard::getState().
|
inline |
Definition at line 33 of file compactBoard.h.
References value.
Referenced by osl::record::CompactBoard::getState(), and osl::record::opiece_sort::operator()().
|
inline |
Definition at line 29 of file compactBoard.h.
References value.
Referenced by osl::record::CompactBoard::getState(), and osl::record::opiece_sort::operator()().
|
inline |
Definition at line 25 of file compactBoard.h.
References bits2Square(), and value.
Referenced by osl::record::CompactBoard::getState(), and osl::record::opiece_sort::operator()().
|
inline |
Definition at line 37 of file compactBoard.h.
References value.
|
static |
Converts a position to an integer (bits)
Definition at line 11 of file compactBoard.cc.
References osl::Square::isPieceStand(), osl::Square::x(), and osl::Square::y().
Referenced by OPiece(), and osl::record::OSquare::OSquare().
|
private |
Definition at line 44 of file compactBoard.h.
Referenced by getOwner(), getPtype(), getSquare(), operator int(), and OPiece().