My Project
|
#include <compactBoard.h>
Public Member Functions | |
OPiece (Piece p) | |
OPiece (int i) | |
Square | square () const |
Ptype | ptype () const |
Player | owner () const |
operator int () const | |
Static Public Member Functions | |
static int | position2Bits (const Square &pos) |
Converts a position to an integer (bits) | |
static Square | bits2Square (const int bit_position) |
Converts an integer (bits) to Square. | |
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 12 of file compactBoard.cc.
Referenced by osl::book::OSquare::getSquare(), osl::book::MiniBoard::getState(), and square().
|
inline |
Definition at line 37 of file compactBoard.h.
References value.
|
inline |
Definition at line 33 of file compactBoard.h.
References value.
Referenced by osl::book::opiece_sort::operator()().
|
static |
Converts a position to an integer (bits)
Definition at line 6 of file compactBoard.cc.
References osl::Square::isPieceStand(), osl::Square::x(), and osl::Square::y().
Referenced by osl::book::MiniBoard::MiniBoard(), OPiece(), and osl::book::OSquare::OSquare().
|
inline |
Definition at line 29 of file compactBoard.h.
References value.
Referenced by osl::book::opiece_sort::operator()().
|
inline |
Definition at line 25 of file compactBoard.h.
References bits2Square(), and value.
Referenced by osl::book::opiece_sort::operator()().
|
private |
Definition at line 44 of file compactBoard.h.
Referenced by operator int(), OPiece(), OPiece(), owner(), ptype(), and square().