package spelldeck; import game.model.AbstractCard; import game.model.Card; import game.model.CardType; import game.model.Fighter; import game.model.Game; public class ReflectCard extends AbstractCard implements Card, Fighter { private int response; public ReflectCard() { super(CardType.SPELL, "Reflect", "Reflects an attack back to the attacker as defense, it will " + "normally destroy the attacker."); } public void damage(Game game, int amount) {} public int getAttack() { return 0; } public int getDefense() { return response; } public boolean responding(Game game) { response = 0; for (Fighter f : game.getAttacking()) { response += game.getAttack(f); } return true; } }