Main Page
Namespaces
Classes
Files
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
include
osl
move_generator
open.tcc
Go to the documentation of this file.
1
#ifndef _GENERATE_OPEN_MOVES_TCC
2
#define _GENERATE_OPEN_MOVES_TCC
3
4
#include "
osl/move_generator/open.h
"
5
#include "
osl/move_generator/pieceOnBoard.tcc
"
6
#include "
osl/move_action/noAddEffectFilter.h
"
7
8
template
<
class
Action>
9
template
<osl::Player P>
10
void
osl::move_generator::Open<Action>::
11
generate
(
const
NumEffectState& state,
Piece
p,Action& action,
Square
to,
Direction
dir)
12
{
13
typedef
move_action::NoAddEffectFilter<Action>
action_t;
14
action_t newAction(state,action,to);
15
PieceOnBoard<action_t>::template
generate<P,true>(state,p,newAction,1<<
primDir
(dir));
16
}
17
18
#endif
/* _GENERATE_OPEN_MOVES_TCC */
19
// ;;; Local Variables:
20
// ;;; mode:c++
21
// ;;; c-basic-offset:2
22
// ;;; End:
Generated on Sun Jul 21 2013 13:37:25 by
1.8.4