open.tcc
Go to the documentation of this file.
00001 #ifndef _GENERATE_OPEN_MOVES_TCC
00002 #define _GENERATE_OPEN_MOVES_TCC
00003 
00004 #include "osl/move_generator/open.h"
00005 #include "osl/move_generator/pieceOnBoard.tcc"
00006 #include "osl/move_action/noAddEffectFilter.h"
00007 
00008 template<class Action>
00009 template<osl::Player P>
00010 void osl::move_generator::Open<Action>::
00011 generate(const NumEffectState& state,Piece p,Action& action,Square to,Direction dir)
00012 {
00013   typedef move_action::NoAddEffectFilter<Action> action_t;
00014   action_t newAction(state,action,to);
00015   PieceOnBoard<action_t>::template generate<P,true>(state,p,newAction,1<<primDir(dir));
00016 }
00017 
00018 #endif /* _GENERATE_OPEN_MOVES_TCC */
00019 // ;;; Local Variables:
00020 // ;;; mode:c++
00021 // ;;; c-basic-offset:2
00022 // ;;; End:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines