My Project
core
osl
bits
pieceTable.cc
Go to the documentation of this file.
1
/* pieceTable.cc
2
*/
3
#include "
osl/bits/pieceTable.h
"
4
#include "
osl/bits/ptypeTraits.h
"
5
6
template
<osl::Ptype T>
7
void
osl::PieceTable::initPtype
()
8
{
9
for
(
int
num=
PtypeTraits<T>::indexMin
; num<PtypeTraits<T>::indexLimit; num++)
10
{
11
ptypes
[num]=T;
12
}
13
}
14
15
osl::PieceTable::PieceTable
()
16
{
17
initPtype<PAWN>
();
18
initPtype<LANCE>
();
19
initPtype<KNIGHT>
();
20
initPtype<SILVER>
();
21
initPtype<GOLD>
();
22
initPtype<KING>
();
23
initPtype<BISHOP>
();
24
initPtype<ROOK>
();
25
}
26
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
Generated by
1.15.0