5template <
int count_max>
12 return AdditionalOrShadow::count<count_max>
13 (direct_pieces, state, target, attack);
20 return count<1>(state, target, attack);
27 return count<2>(state, target, attack);
void findEffect(Player P, Square target, PieceVector &out) const
target に利きのあるPieceをoutに格納する
constexpr Player alt(Player player)
static int count(const NumEffectState &, Square target, Player attack)
static int count2(const NumEffectState &, Square target, Player attack)
target に attack の影利きを二つまで数える.
static bool hasEffect(const NumEffectState &, Square target, Player attack)
target に attack の影利きが一つでもあるか. 相手の追加利きが先にある場合は対象としない.