- template<GenType Type> FORCE_INLINE
- MoveStack* generate_all_moves(const Position& pos, MoveStack* mlist, Color us,
- Bitboard target, const CheckInfo* ci = NULL) {
-
- mlist = (us == WHITE ? generate_pawn_moves<WHITE, Type>(pos, mlist, target, ci)
- : generate_pawn_moves<BLACK, Type>(pos, mlist, target, ci));
-
- mlist = generate_moves<KNIGHT, Type == QUIET_CHECKS>(pos, mlist, us, target, ci);
- mlist = generate_moves<BISHOP, Type == QUIET_CHECKS>(pos, mlist, us, target, ci);
- mlist = generate_moves<ROOK, Type == QUIET_CHECKS>(pos, mlist, us, target, ci);
- mlist = generate_moves<QUEEN, Type == QUIET_CHECKS>(pos, mlist, us, target, ci);
+ moveList = generate_pawn_moves<Us, Type>(pos, moveList, target, ci);
+ moveList = generate_moves<KNIGHT, Checks>(pos, moveList, Us, target, ci);
+ moveList = generate_moves<BISHOP, Checks>(pos, moveList, Us, target, ci);
+ moveList = generate_moves< ROOK, Checks>(pos, moveList, Us, target, ci);
+ moveList = generate_moves< QUEEN, Checks>(pos, moveList, Us, target, ci);