Class CardStarter

All Implemented Interfaces:
CardIF, CardPlayableIF, CardStarterIF, Serializable

public class CardStarter extends CardPlayable implements CardStarterIF
Represents a starter car, that can be played in player's field sometime during the game. All information about the card and how it is being played are inherited by CardPlayable
See Also:
  • Constructor Details

    • CardStarter

      public CardStarter(String id, CardSidePlayable front, CardSidePlayable back)
      Creates a new card setting all immutable attributes of card itself. Sides already exists The card is created not visible in field
      Parameters:
      id - Id of the card
      front - Front side of the card
      back - Back side of the card
    • CardStarter

      public CardStarter(String id, List<Corner> frontCorners, List<Resource> frontCenterRes, List<Corner> backCorners) throws InvalidCardCreationException
      Creates a new card setting all immutable attributs. Creates alse the sides
      Parameters:
      id - Id of the card
      frontCorners - List of corners of the front side
      frontCenterRes - List of central resources of the front side (the only side where there are central resources)
      backCorners - List of corners of the back side
      Throws:
      InvalidCardCreationException