package com.gempukku.lotro.logic.effects;

import com.gempukku.lotro.filters.Filter;
import com.gempukku.lotro.game.PhysicalCard;
import com.gempukku.lotro.game.state.LotroGame;

import java.util.Collection;

public abstract class ChooseActiveCardEffect extends ChooseActiveCardsEffect {
    public ChooseActiveCardEffect(PhysicalCard source, String playerId, String choiceText, Filter... filters) {
        super(source, playerId, choiceText, 1, 1, filters);
    }

    protected abstract void cardSelected(PhysicalCard card);

    @Override
    protected final void cardsSelected(LotroGame game, Collection<PhysicalCard> cards) {
        if (cards.size() == 1)
            cardSelected(cards.iterator().next());
    }
}
