java.lang.Object
com.cmiurca.saintseiyadeckbuilding.saintseiya.Effect
Direct Known Subclasses:
Effect0001, Effect0002, Effect0003, Effect0004, Effect0005, Effect0006, Effect0007, Effect0008, Effect0009, Effect0010, Effect0011, Effect0012, Effect0013, Effect0014, Effect0015, Effect0016, Effect0017, Effect0018, Effect0019, Effect0020, Effect0021, Effect0022, Effect0023, Effect0024, Effect0025, Effect0026, Effect0027, Effect0028, Effect0029, Effect0030, Effect0031, Effect0032, Effect0033, Effect0034, Effect0035, Effect0036, Effect0037, Effect0038, Effect0039, Effect0040, Effect0041, Effect0042, Effect0043, Effect0044, Effect0045, Effect0046, Effect0047, Effect0048, Effect0049, Effect0050, Effect0051, Effect0052, Effect0053, Effect0054, Effect0055, Effect0056, Effect0057, Effect0058, Effect0059, Effect0060, Effect0061, Effect0062, Effect0063, Effect0064, Effect0065, Effect0066, Effect0067, Effect0068, Effect0069, Effect0070, Effect0071, Effect0072, Effect0073, Effect0074, Effect0075, Effect0076, Effect0077, Effect0078, Effect0079, Effect0080, Effect0081, Effect0082, Effect0083, Effect0084, Effect0085, Effect0086, Effect0087, Effect0088, Effect0089

public abstract class Effect extends Object
Effect class, where the effect is created.
Since:
2023-02-04
  • Constructor Details

    • Effect

      public Effect(int id, String description, EffectType type)
      The constructor of the effect.
      Parameters:
      id - The id of the effect.
      description - The description of the effect.
      type - The type of the effect.
  • Method Details

    • getId

      public int getId()
      The getter of the id.
      Returns:
      The id of the effect.
    • getDescription

      public String getDescription()
      The getter of the description.
      Returns:
      The description of the effect.
    • getType

      public EffectType getType()
      The getter of the type.
      Returns:
      The type of the effect.
    • applyEffect

      public abstract void applyEffect(ArrayList<Card> card, ArrayList<Player> player, PlayMat playMat)
      The method that applies the effect.
      Parameters:
      card - The card that the effect is applied to.
      player - The player that the effect is applied to.
      playMat - The playMat that the effect is applied to.
    • toString

      public String toString()
      The ToString method.
      Overrides:
      toString in class Object
      Returns:
      The string of the effect.