Coverage Summary for Class: Card04 (it.polimi.ingsw.Model)

Class Class, % Method, % Line, %
Card04 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: You may move Mother Nature up to 2 10  * additional Islands than is indicated by the Assistant 11  * card you've played. 12  */ 13 public class Card04 extends StatelessEffect { 14  @Serial 15  private static final long serialVersionUID = 106L; // convention: 1 for model, (01 -> 99) for objects 16  17  public Card04(Model ctx) { 18  super(4, 1, ctx); 19  } 20  21  /** 22  * Refer to: {@link CharacterCard#overridableCheckInput(CharacterCardInput)} for further information 23  * 24  * @param input No extra parameters required 25  */ 26  public OptionalValue<InputValidationException> overridableCheckInput(CharacterCardInput input) { 27  return OptionalValue.empty(); //nothing to check for this card 28  } 29  30  /** 31  * Refer to: {@link CharacterCard#unsafeApplyEffect(CharacterCardInput)} for further information 32  */ 33  @Override 34  protected void unsafeApplyEffect(CharacterCardInput input) { 35  this.context.getMutableEffects().enableIncreasedMotherNatureMovement(); 36  } 37  38  //test purpose only 39 }