pieceTable.cc
Go to the documentation of this file.
/* pieceTable.cc
*/
#include "osl/bits/pieceTable.h"
#include "osl/bits/ptypeTraits.h"
template<osl::Ptype T>
void osl::PieceTable::initPtype()
{
for (int num=PtypeTraits<T>::indexMin; num<PtypeTraits<T>::indexLimit; num++)
{
ptypes[num]=T;
}
}
osl::PieceTable::PieceTable()
{
initPtype<PAWN>();
initPtype<LANCE>();
initPtype<KNIGHT>();
initPtype<SILVER>();
initPtype<GOLD>();
initPtype<KING>();
initPtype<BISHOP>();
initPtype<ROOK>();
}
osl::PieceTable::PieceTable
PieceTable()
Definition pieceTable.cc:15
osl::PieceTable::ptypes
CArray< Ptype, Piece::SIZE > ptypes
Definition pieceTable.h:13
osl::PieceTable::initPtype
void initPtype()
Definition pieceTable.cc:7
pieceTable.h
ptypeTraits.h
osl::PtypeTraits
Definition ptypeTraits.h:12