Package it.polimi.ingsw.Model
Class Card05
java.lang.Object
it.polimi.ingsw.Model.CharacterCard
it.polimi.ingsw.Model.StatefulEffect
it.polimi.ingsw.Model.Card05
- All Implemented Interfaces:
Serializable
In Setup, put the 4 No Entry tiles on this card.
EFFECT: Place a No Entrytile on an Island of your choice.
The first time Mother Nature ends her movement there, put the No Entry tile back onto this card
DO NOT calculate influence on that Island, or place any Towers.
- 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 card's contentGet card's stateTypeRefer to:CharacterCard.overridableCheckInput(CharacterCardInput)
for further informationvoid
tileReset
(NoEntryTile tile) Add NoEntryTile to cardprotected 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:
-
tiles
-
-
Constructor Details
-
Card05
-
-
Method Details
-
getState
Get card's content- Specified by:
getState
in classStatefulEffect
- Returns:
- ArrayList of Objects with noEntryTile (Can be casted to
NoEntryTile
)
-
getStateType
Get card's stateType- Specified by:
getStateType
in classStatefulEffect
- Returns:
- card's stateType
-
overridableCheckInput
Refer to:CharacterCard.overridableCheckInput(CharacterCardInput)
for further information- Specified by:
overridableCheckInput
in classCharacterCard
- Parameters:
input
- CharacterCardInput should contain:- A valid island's ID
- 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
-
tileReset
Add NoEntryTile to card- Parameters:
tile
- tile to add
-