Class EventCard

All Implemented Interfaces:
Serializable
Direct Known Subclasses:
CavePaintings, Hunt, ShamanicRitual, Sustenance

public abstract class EventCard extends TribeCard
Abstract base class for all event cards. An EventCard is a TribeCard marked as an event card and associated with a specific EventType.
See Also:
  • Field Details

    • type

      private final EventType type
      The specific type of this event card.
  • Constructor Details

    • EventCard

      public EventCard(int era, EventType type)
      Creates an event card with the specified era and event type.
      Parameters:
      era - the era of the event card.
      type - the type of the event card.
    • EventCard

      public EventCard(String idIMG, int era, EventType type)
      Creates an event card with the specified image id, era and event type.
      Parameters:
      idIMG - the image identifier of the event card.
      era - the era of the event card.
      type - the type of the event card.
  • Method Details

    • getType

      public EventType getType()
      Returns the type of this event card.
      Returns:
      the type of this event card.
    • clone

      public abstract TribeCard clone()
      Creates and returns a copy of this event card.
      Specified by:
      clone in class TribeCard
      Returns:
      a clone of this event card.
    • activateEvent

      public abstract void activateEvent(ArrayList<Player> playerList)
      Activates the effect of this event card on the specified list of players.
      Parameters:
      playerList - the list of players affected by the event.