Package it.polimi.ingsw.Model
Class Card12
java.lang.Object
it.polimi.ingsw.Model.CharacterCard
it.polimi.ingsw.Model.StatelessEffect
it.polimi.ingsw.Model.Card12
- All Implemented Interfaces:
Serializable
EFFECT: Choose a type of Student: every player
(including yourself) must return 3 Students of that type
from their Dining Room to the bag. If any player has
fewer than 3 Students of that type, return as many
Students as they have.
- See Also:
-
Field Summary
Fields inherited from class it.polimi.ingsw.Model.CharacterCard
context, cost, id, timeUsed
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionRefer to:CharacterCard.overridableCheckInput(CharacterCardInput)
for further informationprotected void
Refer to:CharacterCard.unsafeApplyEffect(CharacterCardInput)
for further informationMethods inherited from class it.polimi.ingsw.Model.CharacterCard
checkInput, getCost, getId, getTimeUsed, unsafeUseCard
-
Field Details
-
serialVersionUID
private static final long serialVersionUID- See Also:
-
-
Constructor Details
-
Card12
-
-
Method Details
-
overridableCheckInput
Refer to:CharacterCard.overridableCheckInput(CharacterCardInput)
for further information- Specified by:
overridableCheckInput
in classCharacterCard
- Parameters:
input
- CharacterCardInput should contain:- A valid PawnColour
- Returns:
- a non empty
OptionalValue
containing a validation error. Or an empty one when the input is correct
-
unsafeApplyEffect
Refer to:CharacterCard.unsafeApplyEffect(CharacterCardInput)
for further information- Specified by:
unsafeApplyEffect
in classCharacterCard
- Parameters:
input
- verified user's input- Throws:
Exception
- not related to user's input and not recoverable
-