Package it.polimi.ingsw.Model
Class Card11
java.lang.Object
it.polimi.ingsw.Model.CharacterCard
it.polimi.ingsw.Model.StatefulEffect
it.polimi.ingsw.Model.Card11
- All Implemented Interfaces:
Serializable
In Setup, draw 4 Students and place them on this card
EFFECT: Take 1 Student from this card and place it in your Dining Room. Then, draw a new Student from the Bag and place it on this card.
EFFECT: Take 1 Student from this card and place it in your Dining Room. Then, draw a new Student from the Bag and place it on this card.
- See Also:
-
Field Summary
Fields inherited from class it.polimi.ingsw.Model.StatefulEffect
stateType
Fields inherited from class it.polimi.ingsw.Model.CharacterCard
context, cost, id, timeUsed
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptiongetState()
Get the internal state of the card.Get the type of state this card uses.Refer 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:
-
students
-
-
Constructor Details
-
Card11
-
-
Method Details
-
getState
Description copied from class:StatefulEffect
Get the internal state of the card. UseStatefulEffect.getStateType()
to know how to interpret it.- Specified by:
getState
in classStatefulEffect
- Returns:
- a
List
of the state objects
-
getStateType
Description copied from class:StatefulEffect
Get the type of state this card uses.- Specified by:
getStateType
in classStatefulEffect
- Returns:
- a variant of
StateType
-
overridableCheckInput
Refer to:CharacterCard.overridableCheckInput(CharacterCardInput)
for further information- Specified by:
overridableCheckInput
in classCharacterCard
- Parameters:
input
- CharacterCardInput should contain:- A valid pawnColour from card's state
- 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
-