Class Hunt
java.lang.Object
it.polimi.ingsw.gc14.Model.PlayableCard
it.polimi.ingsw.gc14.Model.Cards.TribeCard
it.polimi.ingsw.gc14.Model.Cards.TribeCards.EventCard
it.polimi.ingsw.gc14.Model.Cards.TribeCards.Events.Hunt
- All Implemented Interfaces:
Serializable
When activated, gives Food and Prestige Points to every player.
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static final intBase food units granted per Hunter.private final intPrestige Points multiplier used during the event. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidactivateEvent(ArrayList<Player> playerList) Activates the event card "Hunt".clone()Creates and returns a copy of this Hunt card.(package private) intGets Prestige Points multiplier used during the event.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
-
BASE_FOOD_PER_HUNTER
private static final int BASE_FOOD_PER_HUNTERBase food units granted per Hunter. Always 1; increased by Building 7.- See Also:
-
prestigeMultiplier
private final int prestigeMultiplierPrestige Points multiplier used during the event.
-
-
Constructor Details
-
Hunt
public Hunt(int Era, int prestigeMultiplier) Creates a new Hunt event card.- Parameters:
Era- the era of the cardprestigeMultiplier- prestige points multiplicator used during the event
-
Hunt
Creates a new Hunt event card.- Parameters:
idIMG- the image identifier of the Hunt event card.Era- the era of the card.prestigeMultiplier- the prestige points multiplier used during the event.
-
-
Method Details
-
getPrestigeMultiplier
int getPrestigeMultiplier()Gets Prestige Points multiplier used during the event.- Returns:
- int
PrestigeMultiplier
-
activateEvent
Activates the event card "Hunt". Each player gains Food and Prestige Points for each Hunter in their tribe, multiplied by the respective multipliers (base food per hunter is 1). Buildings influence: Building 7: adds 1 to both the food and prestige multiplier for each copy owned.- Specified by:
activateEventin classEventCard- Parameters:
playerList- the list of all players in the game.
-
clone
-
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.
-