pieceOnBoard.cc Source File

- Main Page
- Namespaces
- Classes
- Files

- File List
- File Members

All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
pieceOnBoard.cc
Go to the documentation of this file.
1 #include "osl/move_generator/pieceOnBoard.h"
2 #include "osl/move_generator/pieceOnBoard.tcc"
3 #include "osl/move_action/store.h"
4 #include "osl/state/simpleState.h"
5
6 namespace osl
7 {
8 namespace move_generator
9 {
10 // explicit template instantiation
11 template void PieceOnBoard<move_action::Store>::generate<BLACK,false>(const NumEffectState&,Piece,move_action::Store&,int);
12 template void PieceOnBoard<move_action::Store>::generate<WHITE,false>(const NumEffectState&,Piece,move_action::Store&,int);
13 template void PieceOnBoard<move_action::Store>::generatePtype<BLACK,KING,false>(const NumEffectState&,Piece,move_action::Store&,int);
14 template void PieceOnBoard<move_action::Store>::generatePtype<WHITE,KING,false>(const NumEffectState&,Piece,move_action::Store&,int);
15
16 template void PieceOnBoard<move_action::Store,true>::generate<BLACK,true>(const NumEffectState&,Piece,move_action::Store&,int);
17 template void PieceOnBoard<move_action::Store,true>::generate<WHITE,true>(const NumEffectState&,Piece,move_action::Store&,int);
18 } // namespace move_generator
19 } // namespace osl
20
21 void osl::move_generator::GeneratePieceOnBoard::
22 generate(Player turn, const NumEffectState& state, Piece target, MoveVector& out)
23 {
24 move_action::Store store(out);
25 if (turn == BLACK)
26 PieceOnBoard<move_action::Store>::generate<BLACK,false>(state, target, store);
27 else
28 PieceOnBoard<move_action::Store>::generate<WHITE,false>(state, target, store);
29 }
30 // ;;; Local Variables:
31 // ;;; mode:c++
32 // ;;; c-basic-offset:2
33 // ;;; End: