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

Class Class, % Method, % Line, %
StatelessEffect 100% (1/1) 100% (1/1) 100% (1/1)


1 package it.polimi.ingsw.Model; 2  3 import java.io.Serial; 4 import java.io.Serializable; 5  6 /** 7  * A {@link CharacterCard} that implements an effect NOT linked to some internal state 8  */ 9 public abstract class StatelessEffect extends CharacterCard implements Serializable { 10  @Serial 11  private static final long serialVersionUID = 128L; // convention: 1 for model, (01 -> 99) for objects 12  13  /** 14  * Construct a stateless card object 15  * 16  * @param id the ID of the card 17  * @param cost the cost of the card 18  * @param context a reference to the Model, to apply the effect. 19  */ 20  public StatelessEffect(int id, int cost, Model context) { 21  super(id, cost, context); 22  } 23 }