pieceTable.cc Source File

- Main Page
- Namespaces
- Classes
- Files

- File List
- File Members

All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
pieceTable.cc
Go to the documentation of this file.
1 /* pieceTable.cc
2 */
3 #include "osl/pieceTable.h"
4 #include "osl/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