Coverage Summary for Class: Card06 (it.polimi.ingsw.Model)
| Class | Class, % | Method, % | Line, % |
|---|---|---|---|
| Card06 | 100% (1/1) | 100% (3/3) | 100% (3/3) |
1 package it.polimi.ingsw.Model; 2 3 import it.polimi.ingsw.Exceptions.Input.InputValidationException; 4 import it.polimi.ingsw.Misc.OptionalValue; 5 6 import java.io.Serial; 7 8 /** 9 * EFFECT: When resolving a Conquering on an Island, Towers do not count towards influence. 10 */ 11 public class Card06 extends StatelessEffect { 12 @Serial 13 private static final long serialVersionUID = 108L; // convention: 1 for model, (01 -> 99) for objects 14 15 public Card06(Model ctx) { 16 super(6, 3, ctx); 17 } 18 19 /** 20 * Refer to: {@link CharacterCard#overridableCheckInput(CharacterCardInput)} for further information 21 * 22 * @param input No extra parameters required 23 */ 24 public OptionalValue<InputValidationException> overridableCheckInput(CharacterCardInput input) { 25 return OptionalValue.empty(); // nothing to check 26 } 27 28 /** 29 * Refer to: {@link CharacterCard#unsafeApplyEffect(CharacterCardInput)} for further information 30 */ 31 @Override 32 protected void unsafeApplyEffect(CharacterCardInput input) { 33 context.getMutableEffects().enableDenyTowerInfluence(); 34 } 35 36 }