My Project
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>
8 {
9  for (int num=PtypeTraits<T>::indexMin; num<PtypeTraits<T>::indexLimit; num++)
10  {
11  ptypes[num]=T;
12  }
13 }
14 
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 
CArray< Ptype, Piece::SIZE > ptypes
Definition: pieceTable.h:13
void initPtype()
Definition: pieceTable.cc:7