Class StatelessEffect

java.lang.Object
it.polimi.ingsw.Model.CharacterCard
it.polimi.ingsw.Model.StatelessEffect
All Implemented Interfaces:
Serializable
Direct Known Subclasses:
Card02, Card03, Card04, Card06, Card08, Card09, Card10, Card12

public abstract class StatelessEffect extends CharacterCard implements Serializable
A CharacterCard that implements an effect NOT linked to some internal state
See Also:
  • Field Details

  • Constructor Details

    • StatelessEffect

      public StatelessEffect(int id, int cost, Model context)
      Construct a stateless card object
      Parameters:
      id - the ID of the card
      cost - the cost of the card
      context - a reference to the Model, to apply the effect.