All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines
Public Member Functions | Static Public Attributes
osl::record::OPSquare Class Reference

Square, Owner, Promoted : 10 bits. More...

#include <miniBoard.h>

Inheritance diagram for osl::record::OPSquare:
Inheritance graph
[legend]
Collaboration diagram for osl::record::OPSquare:
Collaboration graph
[legend]

List of all members.

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

Detailed Description

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.


Constructor & Destructor Documentation

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.


Member Function Documentation

bool osl::record::OPSquare::isPromoted ( ) const [inline]

Definition at line 79 of file miniBoard.h.

References osl::record::OSquare::value.


Member Data Documentation

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().


The documentation for this class was generated from the following files:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines