Class Artist
java.lang.Object
it.polimi.ingsw.gc14.Model.PlayableCard
it.polimi.ingsw.gc14.Model.Cards.TribeCard
it.polimi.ingsw.gc14.Model.Cards.TribeCards.Character
it.polimi.ingsw.gc14.Model.Cards.TribeCards.Characters.Artist
- All Implemented Interfaces:
Serializable, Cloneable
Represents an Artist character card.
An Artist is a specific type of Character initialized with
CharacterType.ARTIST.
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionArtist(int Era) Creates an Artist character card with the specified era.Artist(int Era, int nMin) Creates an Artist character card with the specified Era and minimum number of players required to play it.Creates an Artist character card with the specified image id and era.Creates an Artist character card with the specified image id, era and minimum number of players required to play it. -
Method Summary
Modifier and TypeMethodDescriptionclone()Creates and returns a copy of this Artist card.voidInserts this Artist card into the specified player's Artist collection and applies any building effects triggered by character set completion.Returns the representation shown on the board (offer track cards).Returns the compact representation shown in the player hand panel.Methods inherited from class TribeCard
getNMin, isEventCardMethods inherited from class PlayableCard
getEra, getIdIMG
-
Constructor Details
-
Artist
public Artist(int Era) Creates an Artist character card with the specified era.- Parameters:
Era- the era of the Artist card.
-
Artist
public Artist(int Era, int nMin) Creates an Artist character card with the specified Era and minimum number of players required to play it.- Parameters:
Era- the era of the Artist card.nMin- the minimum number of players required for the card.
-
Artist
Creates an Artist character card with the specified image id and era.- Parameters:
idIMG- the image identifier of the Artist card.Era- the era of the Artist card.
-
Artist
Creates an Artist character card with the specified image id, era and minimum number of players required to play it.- Parameters:
idIMG- the image identifier of the Artist card.Era- the era of the Artist card.nMin- the minimum number of players required for the card.
-
-
Method Details
-
clone
-
insert
-
toStringPlayer
Description copied from class:PlayableCardReturns the compact representation shown in the player hand panel.- Specified by:
toStringPlayerin classPlayableCard- Returns:
- the player-hand string representation of this card.
-
toStringBoard
Description copied from class:PlayableCardReturns the representation shown on the board (offer track cards).- Specified by:
toStringBoardin classPlayableCard- Returns:
- the board string representation of this card.
-