Class Shaman
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.Shaman
- All Implemented Interfaces:
Serializable, Cloneable
Represents a Shaman character card.
A Shaman is a specific type of Character initialized with
CharacterType.SHAMAN.
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final intThe number of starIconsthe card possesses. -
Constructor Summary
ConstructorsConstructorDescriptionShaman(int Era, int icon) Creates a Shaman character card with the specified era and icon value.Shaman(int Era, int icon, int nMin) Creates a Shaman character card with the specified era, icon value, and minimum number of players.Creates a Shaman character card with the specified image id, era and icon value.Creates a Shaman character card with the specified image id, era, icon value, and minimum number of players. -
Method Summary
Modifier and TypeMethodDescriptionclone()Creates and returns a copy of this Shaman card.intgetIcon()Returns the icon value of this Shaman card.voidInserts this Shaman card into the specified player's Shaman 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
-
Field Details
-
icon
private final int iconThe number of starIconsthe card possesses. During theShamanic Ritual Event, having the majority of these icons provides Prestige Points; having the minority, on the other hand, results in losing Prestige Points.
-
-
Constructor Details
-
Shaman
public Shaman(int Era, int icon) Creates a Shaman character card with the specified era and icon value.- Parameters:
Era- the era of the Shaman card.icon- the icon value of the Shaman card.
-
Shaman
public Shaman(int Era, int icon, int nMin) Creates a Shaman character card with the specified era, icon value, and minimum number of players.- Parameters:
Era- the era of the Shaman card.icon- the icon value of the Shaman card.nMin- the minimum number of players required for the card.
-
Shaman
Creates a Shaman character card with the specified image id, era and icon value.- Parameters:
idIMG- the image identifier of the Shaman card.Era- the era of the Shaman card.icon- the icon value of the Shaman card.
-
Shaman
Creates a Shaman character card with the specified image id, era, icon value, and minimum number of players.- Parameters:
idIMG- the image identifier of the Shaman card.Era- the era of the Shaman card.icon- the icon value of the Shaman card.nMin- the minimum number of players required for the card.
-
-
Method Details
-
getIcon
public int getIcon()Returns the icon value of this Shaman card.- Returns:
- the icon value of this Shaman card.
-
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.
-
clone
-
insert
-