package game.model; /** A modifier changes the attack and/or defense of a Fighter. */ public interface Modifier { /** The amount to add to the attack of the fighter. If * the attack needs to be reduced, a negative value can * be returned. * @param game The game state. * @param card The fighter card to modify. * @return The amount to add to the attack of this card. */ int addToAttack(Game game, Fighter card); /** The amount to add to the defense of the fighter. If * the defense needs to be reduced, a negative value can * be returned. * @param game The game state. * @param card The fighter card to modify. * @return The amount to add to the defense of this card. */ int addToDefense(Game game, Fighter card); }