java.lang.Object
it.polimi.ingsw.am13.model.card.Card
it.polimi.ingsw.am13.model.card.CardPlayable
it.polimi.ingsw.am13.model.card.CardStarter
- All Implemented Interfaces:
CardIF
,CardPlayableIF
,CardStarterIF
,Serializable
Represents a starter car, that can be played in player's field sometime during the game.
All information about the card and how it is being played are inherited by
CardPlayable
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionCardStarter
(String id, CardSidePlayable front, CardSidePlayable back) Creates a new card setting all immutable attributes of card itself.CardStarter
(String id, List<Corner> frontCorners, List<Resource> frontCenterRes, List<Corner> backCorners) Creates a new card setting all immutable attributs. -
Method Summary
Methods inherited from class it.polimi.ingsw.am13.model.card.CardPlayable
getPlayedCardSide, getSide
Methods inherited from class it.polimi.ingsw.am13.model.card.Card
equals, getId, getVisibleSide, hashCode, placeCardInField, removeCardFromField, toString
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
Methods inherited from interface it.polimi.ingsw.am13.model.card.CardIF
getId, getVisibleSide
Methods inherited from interface it.polimi.ingsw.am13.model.card.CardPlayableIF
getPlayedCardSide, getSide
-
Constructor Details
-
CardStarter
Creates a new card setting all immutable attributes of card itself. Sides already exists The card is created not visible in field- Parameters:
id
- Id of the cardfront
- Front side of the cardback
- Back side of the card
-
CardStarter
public CardStarter(String id, List<Corner> frontCorners, List<Resource> frontCenterRes, List<Corner> backCorners) throws InvalidCardCreationException Creates a new card setting all immutable attributs. Creates alse the sides- Parameters:
id
- Id of the cardfrontCorners
- List of corners of the front sidefrontCenterRes
- List of central resources of the front side (the only side where there are central resources)backCorners
- List of corners of the back side- Throws:
InvalidCardCreationException
-