Class Gatherer
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.Gatherer
- All Implemented Interfaces:
Serializable, Cloneable
Represents a Gatherer character card.
A Gatherer is a specific type of Character initialized with
CharacterType.GATHERER.
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionGatherer(int Era) Creates a Gatherer character card with the specified era.Gatherer(int Era, int nMin) Creates a Gatherer character card with the specified era and minimum number of players.Creates a Gatherer character card with the specified image id and era.Creates a Gatherer character card with the specified image id, era and minimum number of players. -
Method Summary
Modifier and TypeMethodDescriptionclone()Creates and returns a copy of this Gatherer card.voidInserts this Gatherer card into the specified player's Gatherer 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
-
Gatherer
public Gatherer(int Era) Creates a Gatherer character card with the specified era.- Parameters:
Era- the era of the Gatherer card.
-
Gatherer
public Gatherer(int Era, int nMin) Creates a Gatherer character card with the specified era and minimum number of players.- Parameters:
Era- the era of the Gatherer card.nMin- the minimum number of players required for the card.
-
Gatherer
Creates a Gatherer character card with the specified image id and era.- Parameters:
idIMG- the image identifier of the Gatherer card.Era- the era of the Gatherer card.
-
Gatherer
Creates a Gatherer character card with the specified image id, era and minimum number of players.- Parameters:
idIMG- the image identifier of the Gatherer card.Era- the era of the Gatherer 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.
-