Package it.polimi.ingsw.Model
Class StatelessEffect
java.lang.Object
it.polimi.ingsw.Model.CharacterCard
it.polimi.ingsw.Model.StatelessEffect
- All Implemented Interfaces:
Serializable
A
CharacterCard
that implements an effect NOT linked to some internal state- See Also:
-
Field Summary
Fields inherited from class it.polimi.ingsw.Model.CharacterCard
context, cost, id, timeUsed
-
Constructor Summary
ConstructorDescriptionStatelessEffect
(int id, int cost, Model context) Construct a stateless card object -
Method Summary
Methods inherited from class it.polimi.ingsw.Model.CharacterCard
checkInput, getCost, getId, getTimeUsed, overridableCheckInput, unsafeApplyEffect, unsafeUseCard
-
Field Details
-
serialVersionUID
private static final long serialVersionUID- See Also:
-
-
Constructor Details
-
StatelessEffect
Construct a stateless card object- Parameters:
id
- the ID of the cardcost
- the cost of the cardcontext
- a reference to the Model, to apply the effect.
-